Skip to content

Commit 0aed256

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

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/lib/services/workflow-service.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,11 +639,19 @@ 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,
646-
handleError: onError,
650+
params: parameters.runId
651+
? {
652+
'execution.runId': parameters.runId,
653+
}
654+
: {},
647655
}).then(toWorkflowExecution);
648656
}
649657

0 commit comments

Comments
 (0)