I have a Gearman Work in php that processes background tasks from client. From time to time I am not able to process that job. I would need a way to delay retry that job after 5 minutes. How can I do that?
What I do now is to do exit(255
) but this will retry the job immediately. Also I do not know how can I get the number of failures of that specific job (in the worker).
Questions:
- How can I do the above stuff in Gearmand
- Is there any other messageing system that is capable of this?