Closed binarymatt closed 14 years ago
Is the plan to enable both a "requeue" method that can be called programmatically, and a supporting control in the web interface?
that is it exactly.
If you look at the failure module, there's already a requeue method for programatically putting failed items back on the queue. The web interface is next.
also see issue binarydud/pyres#33
Working on this now. Commentary is happening on the mailing list.
I've created a branch with working code to requeue and delete jobs from the failure queue. I'd love some feedback.
The branch: http://github.com/aezell/pyres/tree/requeue_jobs
Edit: Fixed link. Thanks mjrusso.
I believe that you linked to the wrong branch ;-)
Try this one: http://github.com/aezell/pyres/tree/requeue_jobs
I think it looks great. Some feedback that I shared on the mailing list would be to use a list_range method like the following:
https://gist.github.com/341182/db9ed4013f147cebc3b9a1aebc156132cc7e8599
aezell's branch has been merged into master and will be pushed out in the 0.8 release coming soon
Sometimes a failed item needs to be re-queued because the issue was a path problem with the worker.