Skip to content

Commit 0e6d65d

Browse files
authored
FUND-2136 Added DisableConcurrentExecution for subscription jobs on startup (#121)
1 parent 82d376a commit 0e6d65d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/OneGround.ZGW.Documenten.Jobs/Subscription/ManageSubscriptionsJob.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ IOptionsMonitor<ZgwServiceAccountConfiguration> optionsMonitor
3232
_optionsMonitor = optionsMonitor;
3333
}
3434

35+
[DisableConcurrentExecution(timeoutInSeconds: 300)]
3536
[AutomaticRetry(Attempts = 3, DelaysInSeconds = new[] { 5, 30, 120 }, OnAttemptsExceeded = AttemptsExceededAction.Fail)]
3637
[Queue(Constants.DrcSubscriptionsQueue)]
3738
public Task ExecuteAsync()

0 commit comments

Comments
 (0)