Job Worker on User Task works intermittently

I’m using Camunda 8 with a user task configured to be handled by a job worker. However, the worker method only gets triggered intermittently — not every time the process reaches the user task. I expect it to trigger consistently.

Any idea why?

Camunda version: 8.6.9

Config:
camunda.client.mode=simple
camunda.client.zeebe.execution-threads=2
camunda.client.zeebe.request-timeout=50m
camunda.client.zeebe.enabled=true
camunda.client.zeebe.base-url=http://localhost:26500
camunda.client.zeebe.gateway-url=http://localhost:26500

Job worker code:
@JobWorker(type = “io.camunda.zeebe:userTask”, autoComplete = false)
public void handleUserTask(final ActivatedJob job) {
log.info(“Received user task: {}”, job.getElementId());
// logic here
}

Hi @Eladiv, welcome to the forums! Does the job never get activated, or does it sometimes take additional time before it is activated?

Sometimes get activated, sometimes not. Also i’ve noticed that after i restart the application, the jobs that did activated first time when the flow reached the User Task gets activated all at once.

Anyway, i downgraded from 8.6.9 to 8.3.0 and the issue disappeared. The worker now consistently activates as expected.

@Eladiv - this is very unexpected, and sounds like a possible bug. Can you share a few more details so we can try to reproduce the issue?

  • You were using version 8.6.9; how did you install it? Were you using Docker, or C8 Run, or Helm, or something else?
  • Can you share the config for your deployment? (docker-compose.yaml, values.yaml, etc.)
  • Is it possible to share the BPMN model?
  • Is it possible to share the full Java project for the worker?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.