sdk-go
sdk-go copied to clipboard
Suppress "worker stopping" polling errors
Is your feature request related to a problem? Please describe.
Today when stopping a worker, this error is logged to WARN (shown with Zap adapter):
2022-11-14T08:20:43.634-0600 WARN harness/log.go:50 Failed to poll for task. {"Namespace": "sdk-features-ns-ae5b6b4a-9ecd-48f6-a6cc-ef9bac2aea25", "TaskQueue": "sdk-features-data_converter/binary-86bf92b7-a1e0-4508-9584-ddc274948245", "WorkerID": "21004@cretz-laptop@", "WorkerType": "WorkflowWorker", "Error": "worker stopping"}
Describe the solution you'd like
Move that to debug level or suppress it entirely. It's not really a poll "failure" if the worker is stopping.
@cretz didn't you fix this here https://github.com/temporalio/sdk-go/issues/882?
Hrmm, I still see these logs when I stop a worker. I guess I didn't fix it well enough or maybe there's something else I missed.
Any updates on this one? I see this still when stopping a worker (or using the SIGTERM channel).
2023-10-12T15:55:39.881-0700 WARN temporal internal/internal_worker_base.go:374 Failed to poll for task. {"Namespace": "default", "TaskQueue": "LOW_PRI", "WorkerID": "43751@Jonnos-Laptop@", "WorkerType": "WorkflowWorker", "Error": "worker stopping"}