C# worker, Deadline Exceeded, grpc_status":4

Hi, I’ve a worker (C#), and there are errors in the log despite this, the worker continues working and handling tasks. It there any way to fix that?

[2021-07-23 13:06:08.528 VRB] Unexpected RpcException on polling new jobs.
Grpc.Core.RpcException: Status(StatusCode=“DeadlineExceeded”, Detail=“Deadline Exceeded”, DebugException=“Grpc.Core.Internal.CoreErrorDetailException: {“created”:”@1627034768.526000000",“description”:“Error received from peer ipv6:[::1]:26500”,“file”:"…\src\core\lib\surface\call.cc",“file_line”:1068,“grpc_message”:“Deadline Exceeded”,“grpc_status”:4}")
at Grpc.Core.Internal.ClientResponseStream2.MoveNext(CancellationToken token) at Zeebe.Client.Impl.Commands.JobActivator.MoveNext(IAsyncStreamReader1 stream, Nullable1 cancellationToken) at Zeebe.Client.Impl.Commands.JobActivator.SendActivateRequest(ActivateJobsRequest request, Nullable1 requestTimeout, Nullable1 cancellationToken) at Zeebe.Client.Impl.Commands.ActivateJobsCommand.Send(Nullable1 timeout, CancellationToken token)
at Zeebe.Client.Impl.Misc.TransientGrpcErrorRetryStrategy.DoWithRetry[TResult](Func1 action) at Zeebe.Client.Impl.Misc.TransientGrpcErrorRetryStrategy.DoWithRetry[TResult](Func1 action)
at Zeebe.Client.Impl.Commands.ActivateJobsCommand.SendWithRetry(Nullable1 timespan, CancellationToken cancellationToken) at Zeebe.Client.Impl.Worker.JobWorker.PollJobs(ITargetBlock1 input, CancellationToken cancellationToken)

The current worker config:

“EmptyServiceConfig”: {
“BpmnProcessId”: “Workflow_demo”,
“MaxJobActive”: 5,
“PollInterval”: 1,
“Timeout”: 10, //seconds
“ThreadsCount”: 1,
“JobType”: “empty”
},
also I tried to set Timeout to 1800 and PollInterval 2000

The message has LogLevel.Trace, so rising the log level to Info eliminate this message in your logs.

Another approach is to switch to long polling. In this case this exception is not logged.

2 Likes