Skip to content

Support typed external wait pause reasons #445

Done

Description

@zyssyz123

Use case

A host-integrated workflow node starts work that may finish after the worker has returned. The host persists the job and its result, checkpoints the paused workflow, and resumes the same node execution when the result is available. Concurrent frames can run the same node, so the saved pause needs to preserve the host's wait ID and the node, execution, and frame identities.

Current behavior

Graphon's pause event and snapshot schemas admit HitlRequired and SchedulingPause. The latter carries a display message, which leaves host integrations without typed correlation for externally completed work. Dify's External Agent integration currently carries a local Graphon source copy to extend that union. A shared upstream reason lets hosts depend on Graphon directly.

Proposed change

Add an external_wait pause reason with wait_id, node_id, node_title, execution_id, and frame_id. Existing pause events and runtime snapshots round-trip the reason. The host owns dispatch, result storage, deadlines, authentication, and resumption. Existing scheduling and human-input reasons continue to decode.

Dify integration: langgenius/dify#45918

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions