fix(hitl): resume workflow output async#4065
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Reviewed by Cursor Bugbot for commit a0b1eed. Configure here. |
Greptile SummaryThis PR is a one-line bug fix that adds Confidence Score: 5/5Safe to merge — minimal, targeted fix with no side-effects. Single-line addition forwarding a non-optional field ( No files require special attention.
|
| Filename | Overview |
|---|---|
| apps/sim/background/resume-execution.ts | Adds output: result.output to the return value of executeResumeJob; ExecutionResult.output is non-optional (NormalizedBlockOutput) so this is always safe to forward. |
Sequence Diagram
sequenceDiagram
participant Caller as Caller (Trigger.dev / BullMQ)
participant Job as executeResumeJob
participant PRM as PauseResumeManager
participant Exec as Workflow Executor
Caller->>Job: trigger(payload)
Job->>PRM: getPausedExecutionById(pausedExecutionId)
PRM-->>Job: pausedExecution
Job->>PRM: startResumeExecution(args)
PRM->>Exec: runResumeExecution(...)
Exec-->>PRM: ExecutionResult { success, output, status, ... }
PRM-->>Job: ExecutionResult
Job-->>Caller: { success, workflowId, executionId, parentExecutionId, status, output, executedAt }
Reviews (1): Last reviewed commit: "fix(hitl): resume workflow output async" | Re-trigger Greptile
Summary
Resume workflow output object needs to have the output of the workflow.
Type of Change
Testing
Tested in staging env.
Checklist