; Example Supervisor config for the Laravel queue worker.
; Processes the `database` queue connection - this is what actually delivers the 9
; App\Notifications\* classes (all ShouldQueue as of Sprint 10) and any other queued
; work. Without this process running, notifications will queue up in the `jobs` table
; and never be delivered - the app keeps working, users just won't see alerts arrive.
;
; Install: copy to /etc/supervisor/conf.d/erp-queue-worker.conf, then:
;   supervisorctl reread && supervisorctl update && supervisorctl start erp-queue-worker:*

[program:erp-queue-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/erp.aradhyaenterprise.com/artisan queue:work --sleep=3 --tries=3 --max-time=3600
directory=/var/www/erp.aradhyaenterprise.com
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=www-data
numprocs=1
redirect_stderr=true
stdout_logfile=/var/www/erp.aradhyaenterprise.com/storage/logs/queue-worker.log
stopwaitsecs=3600
