Skip to content

Commit

Permalink
Merge pull request #46 from aloware/fix/commands-overlapping-issue
Browse files Browse the repository at this point in the history
Fix Commands Overlapping Issue
  • Loading branch information
hamed-aloware authored Mar 20, 2023
2 parents e7b2342 + e758f05 commit fe99651
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/FairQueueServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ public function boot(): void
if(config('fair-queue.recover_lost_jobs.enabled')) {
$age = config('fair-queue.recover_lost_jobs.age', 3600);
// recover lost jobs since `$age` seconds ago
$schedule->command(RecoverLostJobs::class, [$age])->hourly();
$schedule->command(RecoverLostJobs::class, [$age])->hourly()->withoutOverlapping();
}

if(config('fair-queue.recover_stuck_jobs.enabled')) {
// recover stuck jobs
$schedule->command(RecoverStuckJobs::class)->everyFiveMinutes();
$schedule->command(RecoverStuckJobs::class)->everyFiveMinutes()->withoutOverlapping();
// remove extra Horizon signals
$schedule->command(RemoveExtraHorizonSignals::class)->everyFiveMinutes();
$schedule->command(RemoveExtraHorizonSignals::class)->everyFiveMinutes()->withoutOverlapping();
}
// refresh stats for dashboard
$schedule->command(RefreshStats::class)->everyMinute();
$schedule->command(RefreshStats::class)->everyMinute()->withoutOverlapping();
});
}

Expand Down

0 comments on commit fe99651

Please sign in to comment.