schmittjoh / JMSJobQueueBundle

Run and Schedule Symfony Console Commands as Background Jobs
http://jmsyst.com/bundles/JMSJobQueueBundle
334 stars 254 forks source link

problem in Symfony 4 #230

Open HecFranco opened 5 years ago

HecFranco commented 5 years ago

It launches the jobs and persists in the table, but they are never executed. Does anyone know how they are thrown?

HecFranco commented 5 years ago

How is the supervisor configured? in what file for symfony 4?

versh23 commented 5 years ago

supervisor is not a part of symfony. http://supervisord.org/configuration.html

cmmata commented 5 years ago

I have this bundle running with Supervisor and SF3.4, but it must be the same with SF4. Here you have an example configuration I'm using. I think it should work only removing the --env=prod argument.

[program:jms_job_queue_runner_long]
command=php /var/www/example/bin/console jms-job-queue:run --env=prod --queue=long
process_name=%(program_name)s
numprocs=1
directory=/tmp
autostart=true
autorestart=true
startsecs=60
startretries=10
user=nginx
redirect_stderr=false
stdout_logfile=/var/www/example/var/logs/jms_job_queue_runner_long.out.log
stdout_capture_maxbytes=1MB
stderr_logfile=/var/www/example/var/logs/jms_job_queue_runner_long.error.log
stderr_capture_maxbytes=1MB