Skip to content

Make SleepSignal uncatchable to avoid breaking workflow suspension [gcp de feedback] #48

@jamescmartinez

Description

@jamescmartinez

step.sleep interrupts execution by throwing a SleepSignal. This works for replay, but it creates a trap: if a user wraps workflow logic in a broad try { ... } catch (e) { ... }, they will accidentally catch the signal and break suspension. The engine relies on that exception escaping user code.

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