; /etc/supervisor/conf.d/rgsmm-workers.conf

[program:rgsmm-high-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/rgsmm/artisan queue:work redis --queue={high} --sleep=3 --tries=3 --max-time=3600 --memory=128
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=forge
numprocs=2
redirect_stderr=true
stdout_logfile=/var/www/rgsmm/storage/logs/queue-high.log
stopwaitsecs=3600

[program:rgsmm-orders-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/rgsmm/artisan queue:work redis --queue={orders} --sleep=5 --tries=3 --max-time=3600 --memory=256
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=forge
numprocs=4
redirect_stderr=true
stdout_logfile=/var/www/rgsmm/storage/logs/queue-orders.log
stopwaitsecs=3600

[program:rgsmm-default-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/rgsmm/artisan queue:work redis --queue={default} --sleep=3 --tries=3 --max-time=3600 --memory=128
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=forge
numprocs=2
redirect_stderr=true
stdout_logfile=/var/www/rgsmm/storage/logs/queue-default.log
stopwaitsecs=3600

[program:rgsmm-sync-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/rgsmm/artisan queue:work redis --queue={sync} --sleep=10 --tries=2 --max-time=7200 --memory=512
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=forge
numprocs=1
redirect_stderr=true
stdout_logfile=/var/www/rgsmm/storage/logs/queue-sync.log
stopwaitsecs=7200

[program:rgsmm-horizon]
command=php /var/www/rgsmm/artisan horizon
autostart=true
autorestart=true
user=forge
redirect_stderr=true
stdout_logfile=/var/www/rgsmm/storage/logs/horizon.log
stopwaitsecs=3600