-
Notifications
You must be signed in to change notification settings - Fork 333
[BUG] sync_node_executions fails for workflows with FailureNodes #3268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Bito Automatic Review Skipped - Draft PR |
62a2003
to
f0897be
Compare
Bito Automatic Review Skipped - Draft PR |
1 similar comment
Bito Automatic Review Skipped - Draft PR |
) | ||
mock_client = MagicMock() | ||
mock_client.get_execution.return_value = admin_workflow_execution | ||
mock_client.get_workflow.return_value.closure.compiled_workflow.primary.template.failure_node = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add this to ensure the failure node is None
, otherwise it will be MagicMock
-e Signed-off-by: machichima <[email protected]>
-e Signed-off-by: machichima <[email protected]>
-e Signed-off-by: machichima <[email protected]>
-e Signed-off-by: machichima <[email protected]>
eb657ee
to
d87a800
Compare
-e Signed-off-by: machichima <[email protected]>
Tracking issue
Part of flyteorg/flyte#6490
Why are the changes needed?
Getting error
ValueError: Missing node from mapping: fn0
when using remote.wait on an execution that hasFailureNode
specified and the execution failsWhat changes were proposed in this pull request?
Adding failure node to
node_mapping
How was this patch tested?
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link
Summary by Bito
This pull request fixes a bug in workflow handling by improving the node mapping logic to include failure nodes during execution. It also introduces new tests to validate this functionality, enhancing robustness in failure scenarios.