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

fix: cronOperator/serverResubmitWf retry create workflow on transient error. Fixes #13970 #13971

Merged
merged 3 commits into from
Dec 6, 2024

Conversation

tczhao
Copy link
Member

@tczhao tczhao commented Dec 5, 2024

Fixes #13970

Motivation

To address issue where a cron intiated create workflow could failed due network issue

Modifications

Add retry to util.SubmitWorkflow

The SubmitWorkflow is used by argo server.resubmit workflow and controller.cron operator
The original issue was on cron operator, but having retry in the util function allows server to retry resubmit when there's an intermittent issue communicating with the controller, enabling a better user experience.

Verification

The code style is identical to how other transient patterns are written.
We currently don't have a process to force k8s network error, thus hard to write additional test.
We do have a test for transient utility and a successful e2e test is an indication that no issue has been introduced

@tczhao tczhao changed the title fix: retry create workflow on transient error. Fixes 13970 fix: cronOperator/serverResubmitWf retry create workflow on transient error. Fixes 13970 Dec 5, 2024
@tczhao tczhao changed the title fix: cronOperator/serverResubmitWf retry create workflow on transient error. Fixes 13970 fix: cronOperator/serverResubmitWf retry create workflow on transient error. Fixes #13970 Dec 5, 2024
@tczhao tczhao marked this pull request as ready for review December 5, 2024 14:23
Copy link
Member

@Joibel Joibel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you

@tczhao tczhao merged commit 9d1d2cd into main Dec 6, 2024
32 checks passed
@tczhao tczhao deleted the 13970 branch December 6, 2024 03:36
tczhao added a commit to tczhao/argo that referenced this pull request Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retry on transient error when cron creating workflow
2 participants