vapor/queues

Support re-queueing stuck jobs

jdmcd opened this issue · 6 comments

jdmcd commented

In order to fully complete conformance with the reliable queue pattern, the library should expose a hook that allows drivers to move idle jobs in processing back to the upcoming queue stack. This would be useful for jobs that get stuck if the process crashes.

@tanner0101 is this something that might make it into RC tags? Or a future RC?

jdmcd commented

I'd love to get it into the first RC but to be honest I haven't even scoped out what this feature looks like yet. I might have some time this weekend to take a look

Sounds good. Ping me if you want some assistance in researching what this could look like.

jdmcd commented

Will do, thank you!

jjabo commented

Is this still being researched? The current queue is not 'reliable', rather jobs that are dequeued by a worker are lost if the e.g. the worker crashes.

jdmcd commented

@jjabo I have not looked at this in a while but would definitely want to add it if I ever had the time. But would be happy to review a PR!