-
Notifications
You must be signed in to change notification settings - Fork 658
Clients can set an optional backoff time to the failed tasks. #5629
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
Comments
this feature is useful |
Hey @saig0, @npepinpe! I have a question about implementation. So, when I try to use: CLIENT_RULE
.getClient()
.newFailCommand(jobKey)
.retries(1)
.retryBackoff(backoffTimeout)
.requestTimeout(Duration.ofDays(1))
.send()
.join(); in this test, the synchronous call became locked for the whole |
👀 I wasn't really involved so far, so I'd have to look into what this means on Monday. |
Oh, that will be cool to set a backoff from the client on failing jobs, is there any update on this issue ? Many thanks. |
@aivinog1 do you want to continue working on the topic? |
Hey @saig0! |
@aivinog1 I'm sorry for overseeing your question 🙈 Do you have your changes on a branch? Please share a link. I can't reproduce the behavior otherwise. In general, the request waits until the response is received (when using |
@saig0 Here is the test that is failing: aivinog1@78f67ef#diff-ef4fccf13ed0e32bc54cf53556fcbeb151f2c6636988f33bc7b254e0c81a4aceR78 |
@saig0 I think that I found the problem. So I'll need to do
Also, I think that it works without |
9389: Implement a job backoff timeout on Zeebe Java client side r=saig0 a=aivinog1 ## Description <!-- Please explain the changes you made here. --> I implemented the usage of the backoff parameter in the Zeebe Java Client and `@saig0` fixed the problem with flushing responses. ## Related issues <!-- Which issues are closed by this PR or are related --> #5629 Co-authored-by: Alexey Vinogradov <vinogradov.a.i.93@gmail.com> Co-authored-by: Philipp Ossler <philipp.ossler@gmail.com>
9417: feat(client-go): add support for backoff timeout for failed jobs in the Go client and zbctl r=pihme a=aivinog1 ## Description <!-- Please explain the changes you made here. --> I've added mapping in the Go client and an additional flag that matches job backoff. ## Related issues <!-- Which issues are closed by this PR or are related --> closes #5629 Co-authored-by: Alexey Vinogradov <vinogradov.a.i.93@gmail.com>
* fix(test): fix large decision input/output test Since 8.3.0 Zeebe reacts differently on JSON passed to DMN instead of String. Fixing payload to be string in our test. * chore(tests): fix payload file
Is your feature request related to a problem? Please describe.
This is the client's part of #164. The idea is that a client (Java/Go/Zbctl) can specify an optional backoff time when sending a JobFailed command. If a backoff time is set then the job will be available after the backoff time. Otherwise, the job will be available immediately (current behavior).
Describe the solution you'd like
Clients can set an optional backoff time.
Describe alternatives you've considered
We could split this task into three for different clients.
The text was updated successfully, but these errors were encountered: