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

trigger-argo-workflow resubmits the workflow multiple times after the workflow failure when --wait flag is used #69

Open
fornfrey opened this issue Mar 21, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@fornfrey
Copy link

When submitting a workflow with --wait flag, the process blocks until the workflow is completed. However, when the submitted workflow fails the action treats it as a transient error and attempts to resubmit it. This causes multiple AlreadyExists errors to be printed to the job output.

This does not impact the workflow submission or execution (the workflow failed anyway) but makes the debugging process confusing. Sample output of a failed job:

Notice: running command
  time: "2024-03-21T09:49:12.896Z"
  level: INFO
  extraArgs:
  - --wait
Error: failed to run command, retrying
  time: "2024-03-21T10:00:05.717Z"
  level: ERROR
  error: exit status 1
  retry_in: 559.753636ms
time="2024-03-21T10:00:06.993Z" level=fatal msg="Failed to submit workflow: rpc error: code = AlreadyExists desc = workflows.argoproj.io \"my-workflow-1\" already exists, the server was not able to generate a unique name for the object"
Error: failed to run command, retrying
  time: "2024-03-21T10:00:06.995Z"
  level: ERROR
  error: exit status 1
  retry_in: 1.077149047s
time="2024-03-21T10:00:08.773Z" level=fatal msg="Failed to submit workflow: rpc error: code = AlreadyExists desc = workflows.argoproj.io \"my-workflow-1\" already exists, the server was not able to generate a unique name for the object"
@dsotirakis dsotirakis added the good first issue Good for newcomers label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants