Skip to content

Commit

Permalink
fetch workflow id
Browse files Browse the repository at this point in the history
Signed-off-by: Niels Bantilan <[email protected]>
  • Loading branch information
cosmicBboy committed Nov 3, 2021
1 parent d8b660b commit 46e4b5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flytekit/remote/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,8 @@ def sync_workflow_execution(
if execution.spec.launch_plan.resource_type == ResourceType.TASK:
flyte_entity = self.fetch_task(lp_id.project, lp_id.domain, lp_id.name, lp_id.version)
else:
flyte_entity = self.fetch_launch_plan(lp_id.project, lp_id.domain, lp_id.name, lp_id.version)
wf_id = self.fetch_launch_plan(lp_id.project, lp_id.domain, lp_id.name, lp_id.version).workflow_id
flyte_entity = self.fetch_workflow(wf_id.project, wf_id.domain, wf_id.name, wf_id.version)

# sync closure, node executions, and inputs/outputs
execution._closure = self.client.get_execution(execution.id).closure
Expand Down

0 comments on commit 46e4b5d

Please sign in to comment.