What is your current setup? It might be a misconfiguration. It also might be a code thing? You can actually delay jobs, so are you sure you're not doing that?
In Horizon, Redis Job are idles : get paused longer than normal without starting processing
Hi, Dropping 100 job in a queue, having them processed by 10 worker. When done and queue is empty, if couple of jobs are dropped again in same queue, they take half an hour to hours before getting processed by the workers. Not the first time that I observe jobs getting pause in Horizon while all other jobs are completed. Is it a bug or some settings we need to play around with? Thks
Ok, 2 points on which Laravel documentation is not clear and helped to solved my issues :
-
tries=0 mean unlimited retry and tries=1 mean one try (and not one retry)
-
Job will trigger JobFailed event only after checking retry_after which means if :
- timeout=60s, tries=1, retry_after=10min even if Job will timeout at 60s, the failed event will happen after 10min, when retry will check no more tries to do.
Last thing not answered : which parameter superseed the other one : Job class 'tries' or Horizon 'tries' parameter?It seems it is Job class 'tries' even if checking with htop in cli, this is Horizon 'tries' parameter which is displayed in processes
Please or to participate in this conversation.