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

Provide a way to accept retry only when failure appeared on the same stage #54

Open
AndrewDryga opened this issue Jul 3, 2020 · 1 comment

Comments

@AndrewDryga
Copy link
Member

AndrewDryga commented Jul 3, 2020

The use case is described in #50

@MatteoJoliveau
Copy link

Hi! Just jumping in to provide another use case we were using the {stage_name, failure} tuple for:

we're using Tesla's fuse middleware to handle circuit breaking when calling upstream services, and we get {:error, :unavailable} when the fuse melts. So at the moment one of our compensations' clauses is defined as following:

 defp undo_user_update(_, _, {:update_user, :unavailable}, _) do
    Logger.warn("update_user -> unavailable service, retrying")
    {:retry, retry_limit: 2, base_backoff: 10}
  end

For this reason, unless I'm missing something from the new API, we're currently unable to update to 0.6 because that would mean losing the ability to intercept circuit breaks and properly retry the steps.

Do you have any suggestion on how to proceed?

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

No branches or pull requests

2 participants