Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Support retry backoff in Zeebe 1.3 #248

Closed
jwulf opened this issue Dec 14, 2021 · 2 comments
Closed

Support retry backoff in Zeebe 1.3 #248

jwulf opened this issue Dec 14, 2021 · 2 comments
Assignees

Comments

@jwulf
Copy link
Member

jwulf commented Dec 14, 2021

Zeebe 1.3 will support backoff retry for failed tasks. See here: camunda/camunda#5629.

The complete.fail() method of the job worker callback will probably need extending with an optional backoff time parameter.

@jwulf jwulf changed the title Support retry backoff in 1.3 Support retry backoff in Zeebe 1.3 Dec 14, 2021
@jwulf
Copy link
Member Author

jwulf commented Dec 16, 2021

Here are the gRPC API changes (not merged yet in Dec 2021): https://github.com/camunda-cloud/zeebe/pull/8359/files

@jwulf jwulf self-assigned this Dec 16, 2021
@jwulf
Copy link
Member Author

jwulf commented Apr 20, 2022

From version 8.0.0 of the package, used with a 8.0.0 Zeebe broker, you can specify to the broker an optional backoff for the reactivation of the job, like this:

job.fail({errorMessage: 'Triggering a retry with a two second back-off', retryBackOff: 2000, retries: 1})

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

No branches or pull requests

1 participant