Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Workaround flyte dynamic task error code propagation #1085

Merged
merged 3 commits into from
Jun 2, 2023

Conversation

andresgomezfrr
Copy link
Contributor

@andresgomezfrr andresgomezfrr commented Jun 2, 2023

Hey, I just made a Pull Request!

Description

Add a step to clean error codes in the FlyteEventTranslator class of the RetriesExhaused prefix.

Note that this is a temporary fix in the meantime the flyte folks while they fix a bug about how the dynamic tasks reports the errors. PR:flyteorg/flytepropeller#567

Motivation and Context

fixes #1083

Have you tested this? If so, how?

Added Tests to the FlyteEventTranslator test case to include one item for each scenario with the added prefix to ensure that the code is behaving as expected

Checklist for PR author(s)

  • Changes are covered by unit test
  • All tests pass
  • Code coverage check passes
  • Error handling is tested
  • Errors are handled at the appropriate layer
  • Errors that cannot be handled where they occur are propagated
  • (optional) Changes are covered by system test
  • Relevant documentation updated
  • This PR has NO breaking change to public API
  • This PR has breaking change to public API and it is documented

Checklist for PR reviewer(s)

  • This PR has been incorporated in release note for the coming version
  • Risky changes introduced by this PR have been all considered

Clean error codes in the flyte event translator to replace the RetriesExhaused| prefix that comes with all dynamic node failures and retriable nodes
Add tests to ensure that error codes with the retries exhaused prefix are matching the expected error code
@andresgomezfrr andresgomezfrr mentioned this pull request Jun 2, 2023
12 tasks
@RRap0so RRap0so enabled auto-merge (squash) June 2, 2023 14:46
@RRap0so RRap0so disabled auto-merge June 2, 2023 14:46
@andresgomezfrr andresgomezfrr merged commit 30b7554 into master Jun 2, 2023
@andresgomezfrr andresgomezfrr deleted the fix-flyte-error-translation branch June 2, 2023 15:17
@sonjaer sonjaer changed the title Fix flyte error translation Temporary: Fix flyte error translation Jun 12, 2023
@andresgomezfrr andresgomezfrr changed the title Temporary: Fix flyte error translation Workaround flyte dynamic task error code propagation Jun 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 BUGFIX: Handle Flyte error codes that come from Dynamic Workflows
3 participants