binarymatt / pyres

a resque clone in python
http://github.com/binarydud/pyres
MIT License
955 stars 130 forks source link

Ability to delete all items from the failed queue #39

Closed robbiehudson closed 14 years ago

robbiehudson commented 14 years ago

It'd be nice to be able to delete all the items from the error queue rather than going through and deleting them individually (similarly it'd be good to be able to requeue all).

Not sure if this is in the pipeline or easy. I'm using pyres 0.8

binarymatt commented 14 years ago

You are right, this is one of the features that I want to have for version 1.0. I'm going to try and work on this pretty soon, unless someone has a patch to do this.

binarymatt commented 14 years ago

i wanted to include a quick workaround for deleting everything from a failed queue:

resq.redis.rename('resque:failed','resque:failed-staging')
resq.redis.delete('resque:failed-staging')

I'll work on finding a workaround for the time being for retrying everything in the failed queue.

binarymatt commented 14 years ago

this has been added into trunk, 518997096fb70c85fe2f9145a652f987ec316a5d. For the retry, i limited it to 5000 jobs, because of performance concerns.

robbiehudson commented 14 years ago

Great! Thanks very much for that. Look forward to trying it out in the next release.