JMSJobQueueBundle icon indicating copy to clipboard operation
JMSJobQueueBundle copied to clipboard

problem in Symfony 4

Open HecFranco opened this issue 6 years ago • 3 comments

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

HecFranco avatar Apr 12 '19 19:04 HecFranco

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

HecFranco avatar Apr 12 '19 19:04 HecFranco

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

versh23 avatar May 06 '19 10:05 versh23

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

cmmata avatar May 07 '19 08:05 cmmata