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

Batcher will now by default retry it's activity 5 times #6534

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jakobht
Copy link
Member

@jakobht jakobht commented Dec 2, 2024

What changed?
The batcher activity will now retry 5 times by default, instead of forever.

After 5 retries the whole workflow will be retried, insuring any bad state in the heartbeat state is cleared.

The retry policy for the workflow is controlled by the CLI. If the workflow is triggered from an old CLI the workflow will work as before this commit. If the workflow is trigered from the new CLI, it will do the new behaviour with 5 times retry.

The change should be safe as old CLI clients will default to the old
behaviour of retrying forever.

Also:

  • did a small refactor of existing tests to simplify the new test.
  • moved entities to their own file, to make it easier to read the workflow code

Why?
In an incident we had the activity retry forever with bad state. The workflow never recovered or progessed from this.

This change should let the workflow recover in these situations.

How did you test it?
Unit tested, and tested in staging environment.

Potential risks

Release notes

Documentation Changes

After retrying 5 times the whole workflow will retry, ensuring any bad
state is cleared.
The change should be safe as old CLI clients will default to the old
behaviour of retrying forever.
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

Successfully merging this pull request may close these issues.

2 participants