Skip to content

Commit

Permalink
Merge pull request #95 from cego/firecow-patch-1
Browse files Browse the repository at this point in the history
scheduled commands runInBackground and without overlap
  • Loading branch information
LauJosefsen authored Jan 29, 2024
2 parents 518b8cd + 9a5be06 commit 20d19a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RequestInsurance/RequestInsuranceServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ protected function registerAndScheduleCommands(): void

// Add specific commands to the schedule
$this->callAfterResolving(Schedule::class, function (Schedule $schedule) {
$schedule->command('unlock:request-insurances')->everyFiveMinutes();
$schedule->command('clean:request-insurances')->everyTenMinutes();
$schedule->command('request-insurance:unstuck-processing')->everyTenMinutes();
$schedule->command('unlock:request-insurances')->everyFiveMinutes()->withoutOverlapping()->runInBackground();
$schedule->command('clean:request-insurances')->everyTenMinutes()->withoutOverlapping()->runInBackground();
$schedule->command('request-insurance:unstuck-processing')->everyTenMinutes()->withoutOverlapping()->runInBackground();
});
}

Expand Down

0 comments on commit 20d19a7

Please sign in to comment.