Skip to content

[BUG] Typescript SDK handleKill is ignoredΒ #2585

@akeating

Description

@akeating

Describe the issue
Worker ignores handleKill setting.

process.on('SIGTERM', () => this.exitGracefully(true));

I am attempting to run hatchet within another server, so I set handleKill to false.
When I hit ctrl-C (SIGINT), Worker always calls process.exit(0) and the logger throws with an unhandled error (write after close).

Environment
Self-hosted latest

Expected behavior
handleKill is respected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions