Skip to content

Add API for listing all workflows *steps* #40

@adamk-au

Description

@adamk-au

At the moment workflowManager.status() only returns running (steps) for type: 'inProgress'.

Something like this is what I am after to be able to easily inspect the workflow step args and results.

// The return type for `workflowManager.status()`
export type WorkflowStatus = {
  steps: OpaqueIds<Step>[] // <= suggesting to add
  running: OpaqueIds<Step>[] // <= probably not needed if `steps` was added?
  type: 'inProgress'
} | {
  type: 'completed'
  steps: OpaqueIds<Step>[] // <= add?
} | {
  type: 'canceled'
  steps: OpaqueIds<Step>[] // <= add?
} | {
  error: string
  type: 'failed'
  steps: OpaqueIds<Step>[] // <= add?
}

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