[External Task] Camunda External Client Stop Fetching Task By Chance

Hi,

We are using external task in our process flow, and we defined the camunda client project to fetch task from camunda server every 0.5 seconds.

It worked well all along. But recently we found the camunda client would stop fetch task occasionally, even there are serveral tasks in camunda job list.

When we restarted the camunda client, it will re-fetch task from camunda server.

we tried to stop the camunda server, but there are no error logs happened in camunda client. (Normally, error log appears immediately in camunda client)

Any ideas how to solve this problem?

Regards

configurations:

#server
camunda:
  bpm:
    admin-user:
      id:
      password:
    database:
      schema-update: true
    history-level: full
    id-generator: strong
    job-execution:
      active: true
      core-pool-size: 5
      lock-time-in-millis: 1200000
      maximum-pool-size: 5
    process-engine-name: default
    application:
      java-serialization-format-enabled: true
    metrics:
      enabled: false
#client
camunda.bpm.client:
  max-tasks: 1
  disable-backoff-strategy: true
  async-response-timeout: 500
  lock-duration: 1800000
  subscriptions:
    demoHandler:
      auto-open: true

dependencies:

    <!-- camunda server dependencies -->
    <dependency>
        <groupId>org.camunda.bpm.springboot</groupId>
        <artifactId>camunda-bpm-spring-boot-starter</artifactId>
        <version>7.17.0</version>
    </dependency>
    <dependency>
        <groupId>org.camunda.bpm.springboot</groupId>
        <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
        <version>7.17.0</version>
    </dependency>
    <dependency>
        <groupId>org.camunda.bpm.springboot</groupId>
        <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
        <version>7.17.0</version>
    </dependency>
    <!-- camunda client dependencies -->
    <dependency>
        <groupId>org.camunda.bpm.springboot</groupId>
        <artifactId>camunda-bpm-spring-boot-starter-external-task-client</artifactId>
        <version>7.17.0</version>
    </dependency>

This issue is caused by load balancer, and here is another question.

1 Like