Do some debugging and, for example, log something when this action is supposed to be done. If you remove ShouldQueue, the job is being fired synchronously. Also, inside the job do some logging and see how much of it is being finished.
Apr 12, 2016
2
Level 11
Is there a difference in job execution when it's queued?
I have a job that is run, but only seems to work when I implement the ShouldQueue interface. The job basically makes a cURL request to an external server. When I remove the ShouldQueue interface, it doesn't work anymore. It actually appears to timeout. And if I add it back in, it works.
I'm pretty sure the external server has some sort of IP restriction, but I was wondering if it's something that would be caused by queuing the job, because I'm not sure where the issue would be. I'm making the call from my dev environment to the external server in both cases.
Please or to participate in this conversation.