Skip to content

Commit

Permalink
Increase scheduler outdated threshold (#226)
Browse files Browse the repository at this point in the history
increase threshold timeout
  • Loading branch information
korotkov-aerospike authored Aug 21, 2024
1 parent d2d6de9 commit 253e1a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/service/backup_scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ func ApplyNewConfig(scheduler quartz.Scheduler,
// starts and returns the scheduler.
func ScheduleBackup(ctx context.Context, config *model.Config, handlers BackupHandlerHolder,
) (quartz.Scheduler, error) {
scheduler := quartz.NewStdScheduler()
scheduler := quartz.NewStdSchedulerWithOptions(quartz.StdSchedulerOptions{
OutdatedThreshold: 1 * time.Second,
RetryInterval: 100 * time.Millisecond,
}, nil, nil)

scheduler.Start(ctx)

err := scheduleRoutines(scheduler, config, handlers)
Expand Down

0 comments on commit 253e1a6

Please sign in to comment.