Horizon fuer Live vorbereitet
- Supervisor bedient alle Queues der Jobs (high-priority, default, dhl-*), production mit 3 statt 10 Prozessen - Redis-Queue mit after_commit: der Stripe-Paid-Pfad plant den Rechnungsnummer-Sync innerhalb der Transaktion ein - /horizon nur fuer System-Admins (admin >= 4) - horizon:snapshot alle 5 Minuten, queue:prune-failed nach 30 Tagen - deploy.sh: QUEUE_WORKER (horizon | none), Anleitung Abschnitt F Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e1c6178bc7
commit
21daab259f
7 changed files with 95 additions and 25 deletions
|
|
@ -182,7 +182,7 @@ return [
|
|||
'defaults' => [
|
||||
'supervisor-1' => [
|
||||
'connection' => 'redis',
|
||||
'queue' => ['default'],
|
||||
'queue' => ['high-priority', 'default', 'dhl-shipments', 'dhl-returns', 'dhl-cancellations', 'dhl-tracking'],
|
||||
'balance' => 'auto',
|
||||
'autoScalingStrategy' => 'time',
|
||||
'maxProcesses' => 1,
|
||||
|
|
@ -198,7 +198,7 @@ return [
|
|||
'environments' => [
|
||||
'production' => [
|
||||
'supervisor-1' => [
|
||||
'maxProcesses' => 10,
|
||||
'maxProcesses' => 3,
|
||||
'balanceMaxShift' => 1,
|
||||
'balanceCooldown' => 3,
|
||||
],
|
||||
|
|
|
|||
|
|
@ -63,6 +63,8 @@ return [
|
|||
'queue' => 'default',
|
||||
'retry_after' => 90,
|
||||
'block_for' => null,
|
||||
// Jobs aus einer DB-Transaktion (z. B. Stripe-Paid-Pfad) erst nach dem Commit einstellen
|
||||
'after_commit' => true,
|
||||
],
|
||||
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue