Skip to content

[Bug] NestJS example uses incorrect worker shutdown #377

@TS-Tobias

Description

@TS-Tobias

What are you really trying to do?

I am trying to get the Nest.js example to correctly shut down the worker on application termination (for both SIGINT and SIGTERM).

Describe the bug

In the example, the exchange-rates-worker.service.ts calls await this.worker.close();, which doesn't / no longer exists on Worker from @temporalio/worker.

Minimal Reproduction

See nestjs-exchange-rates/apps/worker/src/exchange-rates-worker/exchange-rates-worker.service.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions