Open
Description
Customer reported:
A question regarding worker shutdown.
Very often we deploy code to services which act as the worker.
That will require shutting down the worker, and bringing the service down.In that case, we want to give grace to currently running activities to complete instead of failing (which will require retrying).
I tried to configure "WorkerStopTimeout" as a way to give a chance to currently running short-lived activities to "finish" and report the result.
But I found out that while the worker will now wait for the activities to complete, it won't report their result to the cadence server.So, what is the recommended way to shutdown?