Skip to content

Commit

Permalink
Reduce lock time for tracking Batch and Session apps (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
Minutis authored May 10, 2023
1 parent 74ff2ae commit 58fe9f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private Integer getMaxSlotsForNewJobs() {
return maxSlotsForNewJobs;
}

@SchedulerLock(name = "trackRunning")
@SchedulerLock(name = "trackRunning", lockAtMostFor = "1m")
@Scheduled(fixedDelay = "30s")
public void trackRunning() throws InterruptedException {
assertLocked();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private Waitable launchSession(Application session) {
return launch(session, error -> statusTracker.processApplicationError(session, error));
}

@SchedulerLock(name = "trackRunningSessions")
@SchedulerLock(name = "trackRunningSessions", lockAtMostFor = "1m")
@Scheduled(fixedRate = "2m")
public void trackRunning() {
assertLocked();
Expand Down

0 comments on commit 58fe9f9

Please sign in to comment.