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

How to add @ZeebeWorker(timeout = 1000) timeout #93

Closed
cristianbriscaru opened this issue Mar 25, 2022 · 3 comments
Closed

How to add @ZeebeWorker(timeout = 1000) timeout #93

cristianbriscaru opened this issue Mar 25, 2022 · 3 comments

Comments

@cristianbriscaru
Copy link

How to add @ZeebeWorker(timeout = 1000) timeout ?

It looks like zeebe java client supports this: https://docs.camunda.io/docs/apis-clients/java-client-examples/job-worker-open/#jobworkercreatorjava

Thank you

@tobiasschaefer
Copy link
Collaborator

Hi @cristianbriscaru ,

thanks for taking the time to report that issue.

Currently the job timeout cannot be configured per worker via annotation. However, we will add the missing attributes on the annotation.

Until then it may be a workaround for you (or maybe even better 😃 ) to configure the timeout globally for all workers, see zeebe.client.cloud.default-job-timeout as documented on https://github.com/camunda-community-hub/micronaut-zeebe-client#configuration

Is that an option for you?

@cristianbriscaru
Copy link
Author

Hi @tobiasschaefer ,

The workaround should be fine for now (we usually have a worker per microservice) but having the per worker via annotation configuration would be awesome.

Thank you

tobiasschaefer added a commit to tobiasschaefer/micronaut-zeebe-client that referenced this issue Mar 25, 2022
tobiasschaefer added a commit to tobiasschaefer/micronaut-zeebe-client that referenced this issue Mar 25, 2022
tobiasschaefer added a commit to tobiasschaefer/micronaut-zeebe-client that referenced this issue Mar 28, 2022
tobiasschaefer added a commit to tobiasschaefer/micronaut-zeebe-client that referenced this issue Mar 28, 2022
@tobiasschaefer
Copy link
Collaborator

Hi @cristianbriscaru ,

Release v1.6.0 now supports the "timeout" property on the ZeebeWorker annotation.

Note that you don't simply pass in a value in milliseconds but a string like "PT15M" which makes it less error prone. See all currently supported annotation properties here: https://github.com/camunda-community-hub/micronaut-zeebe-client#zeebeworker-annotation

Does this solve your issue?

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