Skip to content

Clean shutdown to activities to fail fast #818

Open
@mfateev

Description

@mfateev

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurenew feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions