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

'Retry' annotation #34

Open
dlecocq opened this issue Mar 2, 2015 · 1 comment
Open

'Retry' annotation #34

dlecocq opened this issue Mar 2, 2015 · 1 comment

Comments

@dlecocq
Copy link

dlecocq commented Mar 2, 2015

We should be able to mark up methods with a set of expected transient failures which are automatically retried. This mechanism is supported in qless-py and is very convenient. It would look something like this:

class MyJobClass {
  @Retry({IOException, TransientFailureException, SometimesBlowsUpException})
  public void process(final Job job) {
    ...
  }
}
@b4hand
Copy link
Contributor

b4hand commented Mar 2, 2015

The java syntax will require you to pass a class literal like so:

@Retry({IOException.class, TransientFailureException.class, SometimesBlowsUpException.class})

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

No branches or pull requests

2 participants