; TaskFlow queue workers ; ; SETUP: ; 1. Copy this file to your Supervisor config dir, e.g.: ; sudo cp supervisord.conf.example /etc/supervisor/conf.d/taskflow.conf ; 2. Edit the file: replace /var/www/taskflow with your app path; set 'user' to your web user (e.g. www-data). ; 3. Ensure QUEUE_CONNECTION=redis in .env (workers use 'redis' in the command). ; 4. Run: sudo supervisorctl reread && sudo supervisorctl update && sudo supervisorctl start all ; 5. Check: sudo supervisorctl status ; ; Paths: Linux often uses /etc/supervisor/conf.d/. Include it from main supervisord.conf if needed. [program:taskflow-worker-default] process_name=%(program_name)s_%(process_num)02d command=php /var/www/taskflow/artisan queue:work redis --queue=default --sleep=3 --tries=3 --max-time=3600 autostart=true autorestart=true stopasgroup=true killasgroup=true user=www-data numprocs=2 redirect_stderr=true stdout_logfile=/var/www/taskflow/storage/logs/worker-default.log stopwaitsecs=60 [program:taskflow-worker-notifications] process_name=%(program_name)s_%(process_num)02d command=php /var/www/taskflow/artisan queue:work redis --queue=notifications --sleep=3 --tries=3 --max-time=3600 autostart=true autorestart=true stopasgroup=true killasgroup=true user=www-data numprocs=1 redirect_stderr=true stdout_logfile=/var/www/taskflow/storage/logs/worker-notifications.log stopwaitsecs=60 [program:taskflow-worker-slack] process_name=%(program_name)s_%(process_num)02d command=php /var/www/taskflow/artisan queue:work redis --queue=slack --sleep=3 --tries=3 --max-time=3600 autostart=true autorestart=true stopasgroup=true killasgroup=true user=www-data numprocs=1 redirect_stderr=true stdout_logfile=/var/www/taskflow/storage/logs/worker-slack.log stopwaitsecs=60 [program:taskflow-worker-email] process_name=%(program_name)s_%(process_num)02d command=php /var/www/taskflow/artisan queue:work redis --queue=email --sleep=3 --tries=3 --max-time=3600 autostart=true autorestart=true stopasgroup=true killasgroup=true user=www-data numprocs=1 redirect_stderr=true stdout_logfile=/var/www/taskflow/storage/logs/worker-email.log stopwaitsecs=60