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

Support multiple attempts on only a single rule, not all rules #500

Open
nh13 opened this issue Jul 14, 2020 · 2 comments
Open

Support multiple attempts on only a single rule, not all rules #500

nh13 opened this issue Jul 14, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@nh13
Copy link
Contributor

nh13 commented Jul 14, 2020

I want to have a single rule retried but all other rules fail after one retry. This is currently not possible for --restart-times I believe.

For the single rule I retry, I also want to retry it based on some lambda. Of course, I could I set --restart-times to a large number, and then throw an exception when the rule has attempted enough times.

The use case would be to implement a memory-doubling strategy for a rule. So the definition of a rule may say it starts at 2GB, doubles each time up to 128GB. Those values may be variable depending on the user config.

Another use case would be to have some custom logic in the "do-retry" lambda that examines the previous output etc. I could of course have that stuffed into the start of a "run" section.

@nh13 nh13 added the enhancement New feature or request label Jul 14, 2020
@kpj
Copy link
Contributor

kpj commented Jul 16, 2020

See also #367.

@kpj
Copy link
Contributor

kpj commented Jul 17, 2022

@nh13: What do you think about the new rule-specific retries directive added in #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

No branches or pull requests

2 participants