<#4624 Clear past errors from workflow state> Pull...
# flyte-github
c
#4624 Clear past errors from workflow state Pull request opened by Tom-Newton ## Tracking issue #4569 ## Why are the changes needed? Reduce un-needed information stored in etcd when using
failure_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/flyte