Skip to content

Commit

Permalink
fix: run without overlapping (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
atymic authored Mar 20, 2024
1 parent 263f4ae commit 7efbf33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ public function boot()
if (config('snooze.onOneServer', false)) {
$schedule->command('snooze:send')->{$frequency}()->onOneServer();
} else {
$schedule->command('snooze:send')->{$frequency}();
$schedule->command('snooze:send')->{$frequency}()->withoutOverlapping();
}
}

if (config('snooze.pruneAge') !== null) {
if (config('snooze.onOneServer', false)) {
$schedule->command('snooze:prune')->daily()->onOneServer();
} else {
$schedule->command('snooze:prune')->daily();
$schedule->command('snooze:prune')->daily()->withoutOverlapping();
}
}
});
Expand Down

0 comments on commit 7efbf33

Please sign in to comment.