From 7efbf338c0963b876f3b48561f0cc3bb758db3ae Mon Sep 17 00:00:00 2001 From: atymic Date: Wed, 20 Mar 2024 12:49:11 +1100 Subject: [PATCH] fix: run without overlapping (#124) --- src/ServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 7b4ff74..562d88d 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -27,7 +27,7 @@ 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(); } } @@ -35,7 +35,7 @@ public function boot() if (config('snooze.onOneServer', false)) { $schedule->command('snooze:prune')->daily()->onOneServer(); } else { - $schedule->command('snooze:prune')->daily(); + $schedule->command('snooze:prune')->daily()->withoutOverlapping(); } } });