Skip to content

Commit 8b68bd2

Browse files
committed
Pass execution runId in workflow request for schedule recent run
1 parent 7e8170e commit 8b68bd2

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/lib/services/workflow-service.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,11 +639,20 @@ export async function fetchWorkflowForSchedule(
639639
console.error(err);
640640
};
641641

642-
const route = routeForApi('workflow', parameters);
642+
const route = routeForApi('workflow', {
643+
namespace: parameters.namespace,
644+
workflowId: parameters.workflowId,
645+
});
646+
643647
return requestFromAPI(route, {
644648
request,
645649
onError,
646650
handleError: onError,
651+
params: parameters.runId
652+
? {
653+
'execution.runId': parameters.runId,
654+
}
655+
: {},
647656
}).then(toWorkflowExecution);
648657
}
649658

0 commit comments

Comments
 (0)