Camunda.Api.Client icon indicating copy to clipboard operation
Camunda.Api.Client copied to clipboard

Extend lock duration

Open Atallah-Hammad opened this issue 3 years ago • 1 comments

Hi How can I continuously extend the lock duration from the worker?

Atallah-Hammad avatar May 19 '21 13:05 Atallah-Hammad

Something along those lines:

CamundaClient camundaClient; ExternalTaskExtendLock externalTaskExtendLock; string externalTaskId;

// setup camundaClient // fetch and lock external task // store its id in externalTaskId // set up externalTaskExtendLock (WorkerId, NewDuration)

camundaClient.ExternalTasks[externalTaskId].ExtendLock(externalTaskExtendLock);

gaensebluemchenritter avatar Jun 22 '21 17:06 gaensebluemchenritter