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

Followup for #8654: Enhanced depends logic not working when task is omitted #9153

Closed
3 tasks done
mhehle opened this issue Jul 15, 2022 · 5 comments
Closed
3 tasks done
Labels
area/templates/dag solution/duplicate This issue or PR is a duplicate of an existing one type/bug

Comments

@mhehle
Copy link

mhehle commented Jul 15, 2022

Checklist

  • Double-checked my configuration.
  • Tested using the latest version.
  • Used the Emissary executor.

Summary

This is a follow up Issue for #8654 . This issue still exists in version 3.3.8 .
Its impossible to launch/create a workflow with depends on .Omitted step.
You get an error: Internal Server Error: templates.main.tasks.E task result 'Omitted' for task 'D' is invalid

What happened/what you expected to happen?
When a task is Skipped/Omitted because a dependent task is skipped you can't use enhanced depends on that task.

  O
 /  \
A    B <- B is skipped
|    |
C    D <- D gets omitted
|   /
E <- if C.Succeeded && (D.Succeeded || D.Omitted)*

*doesn't work

What version are you running?
3.3.8

Diagnostics

Paste the smallest workflow that reproduces the bug. We must be able to run the workflow.

apiVersion: argoproj.io/v1alpha1
metadata:
  name: broken-depends
  generateName: broken-depends-
  namespace: argo
spec:
  serviceAccountName: workflow
  entrypoint: main
  templates:
    - name: main
      inputs:
        parameters:
          - name: input_var
            default: 'true'
      dag:
        tasks:
          - name: A
            template: pass
          - name: B
            template: pass
            when: '{{ inputs.parameters.input_var }} == false'
          - name: C
            template: pass
            depends: A.Succeeded
          - name: D
            template: pass
            depends: B.Succeeded
          - name: E
            template: pass
            depends: (D.Succeeded || D.Omitted) && C
    - name: pass
      container:
        image: 'alpine:3.7'
        command:
          - sh
          - '-c'
          - exit 0
    - name: fail
      container:
        image: 'alpine:3.7'
        command:
          - sh
          - '-c'
          - exit 1

Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@stale
Copy link

stale bot commented Jul 31, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions.

@stale stale bot added the problem/stale This has not had a response in some time label Jul 31, 2022
@mhehle
Copy link
Author

mhehle commented Aug 1, 2022

still relevant

@stale
Copy link

stale bot commented Aug 13, 2022

This issue has been closed due to inactivity. Feel free to re-open if you still encounter this issue.

@stale stale bot closed this as completed Aug 13, 2022
@ezk84
Copy link
Contributor

ezk84 commented Aug 16, 2022

This is not completed and still an issue.

Edit: Can confirm this works fine in v3.4.0-rc1

@mhehle
Copy link
Author

mhehle commented Aug 16, 2022

the commit 961f731 with the fix was only picked for 3.3.9 release. So this issue should be resolved since 3.3.9.

CherryPick list for 3.3.9
#9262

@agilgur5 agilgur5 added solution/duplicate This issue or PR is a duplicate of an existing one and removed problem/stale This has not had a response in some time labels Sep 8, 2023
@agilgur5 agilgur5 changed the title Followup Issue for #8654 Enhanced depends logic not working when task is omitted Followup for #8654: Enhanced depends logic not working when task is omitted Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/templates/dag solution/duplicate This issue or PR is a duplicate of an existing one type/bug
Projects
None yet
Development

No branches or pull requests

4 participants