Closed jwulf closed 2 years ago
Here are the gRPC API changes (not merged yet in Dec 2021): https://github.com/camunda-cloud/zeebe/pull/8359/files
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})
Zeebe 1.3 will support backoff retry for failed tasks. See here: https://github.com/camunda-cloud/zeebe/issues/5629.
The
complete.fail()
method of the job worker callback will probably need extending with an optional backoff time parameter.