I follow this blog to setup sqs in worker tier. But I get the following error, it seems the daemon doesn't get the environment variable correctly.
What I want to achieve is the worker tier to process all background jobs including cronjob & queue job.
P/S: The values in .env file I stored in elastic beanstalk configuration
I've update this part
[program:laravel_queue]
process_name=%(program_name)s_%(process_num)02d
command=php /var/app/current/artisan queue:work sqs --sleep=3 --tries=3
stdout_logfile=/var/app/support/logs/laravel-queue.log
logfile_maxbytes=0
logfile_backups=0
redirect_stderr=true
autostart=true
autorestart=true
startretries=86400
user=webapp
numprocs=1
redirect_stderr=true
I also blog it down here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.