The Situation
I'm using Laravel Queues to process large numbers of media files, an individual job is expected to take minutes (lets just say up to an hour).
I am using Supervisor to run my queue, and I am running 20 processes at a time. My supervisor config file looks like this:
[program:duplitron-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/duplitron/artisan queue:listen database --timeout=0 --memory=500 --tries=1
autostart=true
autorestart=true
user=duplitron
numprocs=20
redirect_stderr=true
stdout_logfile=/var/www/duplitron/storage/logs/duplitron-worker.log
In my duplitron-worker.log
I noticed Failed: Illuminate\Queue\CallQueuedHandler@call
occurs occasionally and I would like to better understand what exactly is failing. Nothing appears in my laravel.log file (which is where exceptions would normally appear).
The Question
Is there a handy way for me to learn more about what is causing my job to fail?
loglevel
under[supervisord]
in the supervisord.conf. You can start withdebug
(check more here: supervisord.org/logging.html). Usually the reason why it fails, because the code you run doesn't end with correct "exit status". You can also see it here: #28938222 Last thing, you may need to addstderr_logfile
in your configs. – Petes