twitter-archive / kestrel

simple, distributed message queue system (inactive)
http://twitter.github.io/kestrel
Other
2.77k stars 312 forks source link

Delayed item abort #15

Closed Suhail closed 14 years ago

Suhail commented 14 years ago

I'd like something that lets you delay when the item is added back to the head after an abort.

Maybe: /abort/t=300

This would add the item back to the head of the queue after 300ms. Right now I have clients that hang for a certain amount of time.

robey commented 14 years ago

you could instead try writing the item to a different queue, with an expiration and a "move_expired_to" setting that punts expired items back to the main queue.

Suhail commented 14 years ago

Sounds like you'd have to continuously poll the "delayed" queue; is that what you're suggesting also?

robey commented 14 years ago

you can ask kestrel to poll that periodically with "expiration_timer_frequency_seconds".

Suhail commented 14 years ago

Is this in the docs?

Suhail commented 14 years ago

Can you document how "move_expired_to" works and how to use it? Also, can you decide whether it gets added to the head/tail of the queue? That would be good to control that.

robey commented 14 years ago

ok, documented!