StatusRuntimeException: DEADLINE_EXCEEDED

Hi team
I got a exception when the process instance was running.


As shown in the figure the job started as 14:48 and the exception happened after 8 hours.
Here are my poms:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    <version>3.2.5</version>
</dependency>
<dependency>
    <groupId>io.camunda.spring</groupId>
    <artifactId>spring-boot-starter-camunda</artifactId>
    <version>8.5.2</version>
</dependency>

My cluster version is 8.5.2 (self-managed) .
I have a long-term (maybe a few days) service task and the task which mentioned in the exception is after the long-term task.

The error tells you pretty much exactly what you said…

Connection failed after 28800s (8h)
Does the task itself take more than 8h to run? Basically, Camunda was trying to send jobs to the worker, and gave up after 8h. We probably won’t be able to tell you why without a lot more information.

I tried again and the error interval was 7 hours as following figure.

Below is a part of process instance in operate.


The red arrow points to the long-term task.It periodically checks the specified path and processes the files if they exists.
The tasks in the red box threw the DEADLINE exception.