schmittjoh / JMSJobQueueBundle

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

Jobs get restarted infinitely #218

Closed jav974 closed 6 years ago

jav974 commented 6 years ago

Great Job on this bundle !! I have a problem though, i have a task that takes ~15 seconds to complete. When i persist a new Job, it get started but during its execution, a new Job is inserted as pending... and gets started again as soon as the first one terminates. This leads to a perpetual job work and i can't see why this happens.

I continue my investigation but do you have any clue ?

PS: I use only 1 max concurrent job

EDIT:

My bad !! i was creating jobs inside a doctrine postFlush global event and had a logical issue that lead to multiple insertions of jobs... Everything works fine !