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

workflow doesn't go ahead next item in case of concurrency: 1 #6234

Open
freeyssu opened this issue Sep 4, 2024 Discussed in #6232 · 1 comment
Open

workflow doesn't go ahead next item in case of concurrency: 1 #6234

freeyssu opened this issue Sep 4, 2024 Discussed in #6232 · 1 comment

Comments

@freeyssu
Copy link

freeyssu commented Sep 4, 2024

Discussed in #6232

Originally posted by freeyssu September 3, 2024
I usually use with - items statement for parallel process.
I found out that a failed job with concurrency: 1 config causes that task is termiated immediately even though uncompleted items in loop still remains.

This is my sampe code.
When svr1 is failed with concurrency: 1, the workflow doesn 't run the action for the remained 2 items svr2 and svr3. My expectation is that the task completes all 3 items in loop and then mark FAIL result as the first item is failed.
In case of concurrency: 2 or having bigger value, the workflow executes all 3 items and then marks task FAIL result. This is what I expected.

vars
  - servers: ["svr1", "svr2", "svr3"]

task:
    with:
      items: target_server in <% ctx(servers) %>
      concurrency: 1
    action: pack.action    
    next:
      ....
```</div>
@guzzijones
Copy link
Contributor

This is a known 'fail fast' feature. You can use a sub workflow that ignores failures to bypass this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants