cuddly-jelly-27016
04/15/2025, 12:21 AMfailure_policy=WorkflowFailurePolicy.FAIL_AFTER_EXECUTABLE_NODES_COMPLETE. This allows flyte to scale to larger workflows before hitting etcd size limits.
## What changes were proposed in this pull request?
• Clears old errors whenever new ones occur
• This is controlled by the node-config.enable-cr-debug-metadata config option. Set this to true to restore the previous behaviour.
• Behaviour is only changed when running workflows with FAIL_AFTER_EXECUTABLE_NODES_COMPLETE. Without this the workflow will fail as soon as there is one failure so there can never be more than one error regardless of this PR.
• Update docstring for enable-cr-debug-metadata config option.
• Update TestWorkflowExecutor_HandleFlyteWorkflow_Failing to have sub test cases for combinations of FAIL_AFTER_EXECUTABLE_NODES_COMPLETE and enable-cr-debug-metadata
## How was this patch tested?
Updated unittests
I have been running something very similar to this in our prod deployment for some time.
### Setup process
### Screenshots
## Check all the applicable boxes
• I updated the documentation accordingly - I would like to make a follow up PR to update https://docs.flyte.org/en/latest/deployment/configuration/performance.html#improving-etcd-performance
• All new and existing tests passed.
• All commits are signed-off.
## Related PRs
Follow up to #4596
## Docs link
flyteorg/flytecuddly-jelly-27016
04/15/2025, 12:21 AM