Skip to content

[Feature Request] Catch-all signal handler #846

Closed
@lorensr

Description

@lorensr

Is your feature request related to a problem? Please describe.

With multiple handlers, each handler processes its own signals in order. In order to get in-order delivery of all signals, you need to either:

  • only send a single signal type ("fat handler")
  • have a catch-all handler that is called when any signal arrives, regardless of type

Describe the solution you'd like

Something like:

import { setGlobalSignalHandler } from '@temporalio/workflow'

setGlobalSignalHandler((signalType: string, arg1: Type1, arg2: Type2) => ...)

When both a global and individual handler is defined, do we only deliver to one of them, or to both?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions