Skip to content
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

atlas-eval: fix eval flow failure on lwc instance removal #1165

Merged
merged 1 commit into from
Apr 2, 2020

Conversation

jfz
Copy link
Contributor

@jfz jfz commented Apr 2, 2020

Currently the whole eval flow may fail when a lwc instance is removed. There's a subflow for lwc api call of each lwc instance, and that subflow is wrapped around by "RestartFlow" to enable auto-retry. The subflow is finished from upstream when a lwc instance is removed, and when upstream of RestartFlow is finished, RestartFlow also finishes and propagate the failure from the current ongoing attempt if any, to downstream, and eventually propagate to main flow.

The fix is to have downstream of RestartFlow suppress the failure with Flow.recoverWithRetries, since the failure is expected and should be ignored on lwc instance removal.

Currently the whole eval flow may fail when a lwc instance is removed.
There's a subflow for lwc api call of each lwc instance, and that subflow is wrapped around by "RestartFlow" to enable auto-retry.
The subflow is finished from upstream when a lwc instance is removed, and upstream of RestartFlow is finished, RestartFlow
finishes and propagate the failure from the current ongoing attempt if any, to downstream, and eventually propagate to main flow.

The fix is to have downstream of RestartFlow suppress the failure, since the failure is expected and can be ignored on lwc instance removal.
@jfz jfz force-pushed the evalFlowFailureOnInstanceRemoved branch from 9856efd to 42a0619 Compare April 2, 2020 22:03
@brharrington brharrington added this to the 1.7.0 milestone Apr 2, 2020
@brharrington brharrington merged commit 8a41771 into Netflix:master Apr 2, 2020
@jfz jfz deleted the evalFlowFailureOnInstanceRemoved branch September 10, 2020 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants