Hintergrundaufgaben: Pseudo-Cron nur nach Seitenaufrufen, Queue im selben Prozess (0.28.2)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m55s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m6s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 6m26s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 6m13s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 9m12s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 8m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m19s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m29s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m33s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m55s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m6s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 6m26s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 6m13s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 9m12s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 8m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m19s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m29s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m33s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c6e2dd91f5
commit
987bf7c8f8
6 changed files with 54 additions and 5 deletions
|
|
@ -36,7 +36,13 @@ Schedule::call(fn () => app(EntraDirectorySync::class)->runAll())
|
|||
->withoutOverlapping(30);
|
||||
|
||||
// Aufträge der Datenbank-Queue in kurzen Häppchen abarbeiten (kein Dauerprozess nötig).
|
||||
Schedule::command('queue:work --stop-when-empty --max-time=40 --tries=3')
|
||||
// Im selben PHP-Prozess – ein eigener Aufruf von „php“ trifft auf manchen Servern eine andere
|
||||
// PHP-Version (Abbruch mit Code 255). Beim Pseudo-Cron kürzer, damit kein Seitenaufruf lange wartet.
|
||||
Schedule::call(fn () => Artisan::call('queue:work', [
|
||||
'--stop-when-empty' => true,
|
||||
'--max-time' => app()->runningInConsole() ? 45 : 15,
|
||||
'--tries' => 3,
|
||||
]))
|
||||
->everyMinute()
|
||||
->name('queue')
|
||||
->withoutOverlapping(5);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue