You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/worker.conf

56 lines
1.6 KiB

[supervisord]
nodaemon=true
user = root
[supervisorctl]
[inet_http_server]
port = 127.0.0.1:9001
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[program:scheduler]
process_name=%(program_name)s_%(process_num)02d
command=/bin/sh -c "while [ true ]; do (php /var/www/html/artisan schedule:run --verbose --no-interaction &); sleep 60; done"
autostart=true
autorestart=true
numprocs=1
user=www-data
redirect_stderr=true
stdout_logfile=/var/log/supervisor/scheduler.log
[program:change-store-order-status]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/html/artisan queue:work redis --queue=change_to_successful_store_order --sleep=3 --tries=3 --max-time=3600
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=www-data
numprocs=3
redirect_stderr=true
stopwaitsecs=3600
stdout_logfile=/var/log/supervisor/change-store-order-status.log
[program:create-store-product]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/html/artisan queue:work redis --queue=create_store_product --sleep=3 --tries=3 --max-time=3600
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=www-data
numprocs=3
redirect_stderr=true
stopwaitsecs=3600
stdout_logfile=/var/log/supervisor/create-store-product.log
# [program:check-sms-status]
# command=php /var/www/html/artisan queue:work redis --queue=check-sms-status --tries=3
# process_name=%(program_name)s_%(process_num)02d
# autostart=true
# autorestart=true
# user=www-data
# numprocs=3
# redirect_stderr=true
# stdout_logfile=/var/log/supervisor/sms-status.log