Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support to automatic retry of tasks #412

Closed
kaazoo opened this issue May 4, 2011 · 2 comments
Closed

add support to automatic retry of tasks #412

kaazoo opened this issue May 4, 2011 · 2 comments
Labels
Milestone

Comments

@kaazoo
Copy link

kaazoo commented May 4, 2011

Like in the old releases, it should be possible to specifiy the number of retries when creating a new task.
In load balanced view, if one task fails on one engine that task could be rerun on another engine.

minrk suggests the following workaround, which makes a copy of the same task depend on the original one and running that only if the first try fails.

ars = [view.apply_async(task)]
with view.temp_flags(after=Dependency(ars, success=False,failure=True)):
    ars.append(view.apply_async(task))

This workaround might be ok if you only want to have 1 retry. But if you need a higher number of retries you will create lots of tasks which might never be executed.

@minrk
Copy link
Member

minrk commented May 4, 2011

Can you test from my retries branch: #413?

It adds retries as an integer flag, specifying the maximum number of retries.

I believe that should behave in the same way as the previous version.

@kaazoo
Copy link
Author

kaazoo commented May 5, 2011

Thank you. Setting the retry limit works. If I create tasks that will fail (for example try to render a Blender scene file which isn't existing) leads to having them atuomatically requeued to other engines.

@kaazoo kaazoo closed this as completed May 5, 2011
minrk added a commit to minrk/ipython that referenced this issue May 17, 2011
also add some lbv tests, and related fixes

closes ipythongh-412
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
also add some lbv tests, and related fixes

closes ipythongh-412
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants