Skip to content

Commit

Permalink
feat: add updateStage method
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Sep 26, 2024
1 parent 1794949 commit 4523da1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/multi-stage-output.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,10 @@ export class ParallelMultiStageOutput<T extends Record<string, unknown>> extends
this.update(stage, 'completed', data)
}

public updateStage(stage: string, status: StageStatus, data?: Partial<T>): void {
this.update(stage, status, data)
}

private update(stage: string, status: StageStatus, data?: Partial<T>): void {
if (this.stopped) return
if (!this.stages.includes(stage)) return
Expand Down

0 comments on commit 4523da1

Please sign in to comment.