Skip to content

[Feature Request] Write spec for graceful worker shutdown #261

@bergundy

Description

@bergundy

Different SDKs implement graceful shutdown differently.

TypeScript traditionally treated the graceful shutdown period as "give up on shutdown after this period" and recently changed the semantics to be inline with Python / .NET where graceful shutdown refers to when to issue cancellations to running activities.

By default all Core based SDKs now will wait for activities to complete before returning from Worker.run.

Go does not wait for activities to complete today and should change to be consistent with Core based SDKs.
Need to verify what Java does here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-testRelated to implementation of a feature in the features/ directory

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions