How could set job worker to never timeout?

how could set job worker to never timeout? Currently default time out is 10000L, is there any way to set job worker never timeout?

Hi @Young200808.

There are different timeouts related to the job worker.

In the activate job request, you can set the timeout that defines how long the job is activated (i.e. how long the worker can work on this job exclusively because it can be activated again).

You can also set a requestTimeout that defines when the request is closed if no job is available (i.e. for long polling).

Which one do you mean?
Why do you want to set it to infinity?
Which client do you use?

Best regards,

Hi mate, I mean the first case. The timeout that defines how long the job is activated。
Why I ask this is because we have some service task which completed time will vary from some days to months after it was activated.
We are using spring-zeebe as client.

For that use case, I would model it as a service task, and a message to correlate back into the workflow.

Then you can complete it successfully in your worker as soon as you hand it off to your system. Your worker system will need to manage the resiliency - maintaining some state and the responsibility for rehydrating that if the worker fails.

Then, when your “worker task” is completed, you send in a message to be correlated with the workflow instance.

If you are talking about an infinite timeout, then there is no broker retry - so you are talking about a service task that starts your system, and a message catch event to signal the result back into to workflow.