Skip to content

Example with wait callback? #14

@jlaura

Description

@jlaura

The state language docs define the Wait State spec. AWS step functions seem to extend this spec with the ability to register a callback. Is there an example where a globus flow has a wait and registers a callback?

Use Case:
The flow submits a job to a slurm scheduler for either immediate or future execution, pending resource availability. The Wait State needs to wait for an indeterminate amount of time before executing the next step in the flow (likely a choice step to parse job success)

Work Around:
A times wait state that calls a compute endpoint that polls for the current job status, sends that status to a parser, and then either returns to the wait state or continues to the next step in the flow. This is not ideal as a large percentage of the logging output becomes wait-choice-repeat logging.

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