Skip to content

Use Wait to correlate external results and wake-up signals #447

In progress

Description

@QuantumGhost

AI disclosure: Codex (gpt-6.2-astra) helped draft this issue from the maintainer's requested API changes.

Use case

A workflow node pauses while the host waits for an external result or a wake-up signal. The host uses the opaque wait_id to correlate the result or signal with a wait of the given wait_type.

Current behavior

#446 introduced the unreleased ExternalWait reason with the wire tag external_wait. Its payload requires a frame_id even though Graphon already tracks the execution frame in node events and runtime state.

Proposed change

Rename the reason to Wait, serialize it with TYPE="wait", and remove frame_id from the reason. Keep node_id, node_title, and node_execution_id so consumers can identify the node that paused. The unreleased tag requires no migration.

Cover two executions of the same node waiting in different frames. Their distinct wait IDs should survive event and snapshot round trips.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions