vapor / queues

A queue system for Vapor.
MIT License
169 stars 41 forks source link

Support re-queueing stuck jobs #17

Open jdmcd opened 5 years ago

jdmcd commented 5 years ago

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.

Andrewangeta commented 4 years ago

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

jdmcd commented 4 years ago

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

Andrewangeta commented 4 years ago

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

jdmcd commented 4 years ago

Will do, thank you!

jjabo commented 3 years ago

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 3 years ago

@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!