Skip to content

Commit 2563be6

Browse files
committed
Supervisor fallback
1 parent becc25e commit 2563be6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/resources/views/supervisor-generator.blade.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
stopwaitsecs={{ $config->timeout ? $config->timeout : 600 }}
1212
stopsignal=TERM
1313

14-
@foreach($config->fallback_connections as $fallbackConnection)
15-
[program:laravel-worker-{{$config->name}}-fallback-{{$fallbackConnection}}]
14+
@endforeach
15+
16+
@foreach($fallbackConnections as $fallbackConnection)
17+
[program:laravel-worker-fallback-{{$fallbackConnection}}]
1618
process_name=%(program_name)s_%(process_num)02d
17-
command=php {{config('queue_manager.artisan_path')}} queue-manager:work --queue={{$config->name}} --sleep=60 --tries={{ $config->max_attempts ? $config->max_attempts : 5 }} --timeout={{ $config->timeout ? $config->timeout : 0 }} {{ $fallbackConnection }}
19+
command=php {{config('queue_manager.artisan_path')}} queue-manager:work --sleep=60 --tries=5 --timeout=600 {{ $fallbackConnection }}
1820
autostart=true
1921
autorestart=true
2022
user={{config('queue_manager.supervisor_user')}}
21-
numprocs={{ $config->active ? 1 : 0 }}
23+
numprocs=1
2224
redirect_stderr=true
2325
stdout_logfile={{config('queue_manager.log_path')}}
24-
stopwaitsecs={{ $config->timeout ? $config->timeout : 600 }}
26+
stopwaitsecs=600
2527
stopsignal=TERM
2628

2729
@endforeach
28-
29-
@endforeach

0 commit comments

Comments
 (0)