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

Allow --restart-times to specify rule name to be applied to #367

Closed
kpj opened this issue May 1, 2020 · 1 comment
Closed

Allow --restart-times to specify rule name to be applied to #367

kpj opened this issue May 1, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@kpj
Copy link
Contributor

kpj commented May 1, 2020

For example, jobs which download data via the internet can sometimes (unexpectedly) crash due to network problems. In such cases, restarting them is the only possible fix.

Snakemake has the parameter --restart-times N which restarts any failing job N times.
It would be great if this parameter would optionally take a rule name to only allow multiple restarts for that particular rule.

It is certainly possible to handle automatic retries within the rule itself, but using Snakemake's --restart-times parameter seems like a more elegant way of handling this (in particular with snakemake wrappers).

@kpj
Copy link
Contributor Author

kpj commented Jul 17, 2022

This is now reasonably solved by #1649.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant