io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 19.999970800s. Name resolution delay 0.000000000 seconds. [closed=[], open=[[buffered_nanos=20000946200, waiting_for_connection]]]

I am facing the Deadline_Exceeded frequently whenever I do run all my task task continuously in my local and most of task fail. I wont even able to open cockpit. I need to restart my machine every time to make sure it works.

Below is code:

@JobWorker(type = ENTITY_DEPLOY_COMPLETE_STATE)
    public Map<String, Object> updateEntityState(
            final ActivatedJob job) {
       
        var entityId = job.getVariable(
                AppConstants.ENTITY_ID).toString();
        try {
            EntityDTO entityDTO =
                    objectMapper.convertValue(job.getVariable(entityId),
                            EntityDTO.class);
            log.info(
                    "ValidateWorkFlow.updateEntityStateToDeployComplete"
                            + "with Co-relationId {}", correlationId);

            var headers = setHeaders(job, serviceMicroToken.getMicrotoken(
                    correlationId));
            updateProductState(headers, entityDTO);
            emitEvent(headers, entityDTO);
            getVariablesMap().put(entityId, entityDTO);
            getVariablesMap().put(CamundaVariables.IS_SUCCESS, true);
            success();
        } catch (Exception exception) {

            log.error(
                    "ValidateWorkFlow.updateEntityStateToDeployComplete("
                            + "final ActivatedJob job) "
                            + "with Co-relationId {}:{}", correlationId,
                    exception.getMessage());
            failWorkflow();
            throwGenericTerminationError(zeebeClient, exception, job);
        }
        return getVariablesMap();
    }
Error: 2024-11-13T15:57:51.214+05:30  WARN 29424 --- [ms-java-workflow] [lt-executor-267] io.camunda.zeebe.client.job.poller       : Failed to activate jobs for worker entityUpdateDeployCompleted#updateEntityStateToDeployComplete and job type update_deploy_complete_state

io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 19.999972300s. Name resolution delay 0.000000000 seconds. [closed=[], open=[[buffered_nanos=20007910900, waiting_for_connection]]]
	at io.grpc.Status.asRuntimeException(Status.java:537) ~[grpc-api-1.60.0.jar:1.60.0]
	at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:481) ~[grpc-stub-1.60.0.jar:1.60.0]
	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:574) ~[grpc-core-1.60.0.jar:1.60.0]
	at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:72) ~[grpc-core-1.60.0.jar:1.60.0]
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:742) ~[grpc-core-1.60.0.jar:1.60.0]
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:723) ~[grpc-core-1.60.0.jar:1.60.0]
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) ~[grpc-core-1.60.0.jar:1.60.0]
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133) ~[grpc-core-1.60.0.jar:1.60.0]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[na:na]
	at java.base/java.lang.Thread.run(Thread.java:1583) ~[na:na]

Please post it in Camunda 7 forum.

I am using camunda 8