Skip to content

[Bug] NestJS example uses incorrect worker shutdown #377

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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