0
votes

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.

Error log

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

1

1 Answers

0
votes

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