-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Enhanced depends logic not working when task is omitted #8654
Enhanced depends logic not working when task is omitted #8654
Comments
…roj#8654 Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This is fixed in #8672. Thanks for reporting! |
@terrytangyuan I'm using Omitted with dag, and sensor bumps into this error https://github.com/argoproj/argo-workflows/blob/master/workflow/common/ancestry.go#L102 |
Thank you! I am fixing this in #8776. |
[Release Notes](https://github.com/argoproj/argo-workflows/releases/tag/v3.3.6) Includes 1 fix: - eat: Handle omitted nodes in DAG enhanced depends logic. Fixes [#8654](argoproj/argo-workflows#8654) Signed-off-by: jmeridth <jmeridth@gmail.com>
[Release Notes](https://github.com/argoproj/argo-workflows/releases/tag/v3.3.6) Includes 1 fix: - eat: Handle omitted nodes in DAG enhanced depends logic. Fixes [#8654](argoproj/argo-workflows#8654) Signed-off-by: jmeridth <jmeridth@gmail.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
[Release Notes](https://github.com/argoproj/argo-workflows/releases/tag/v3.3.6) Includes 1 fix: - eat: Handle omitted nodes in DAG enhanced depends logic. Fixes [#8654](argoproj/argo-workflows#8654) Signed-off-by: jmeridth <jmeridth@gmail.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Signed-off-by: foxtel-temujincabigao <86087373+foxtel-temujincabigao@users.noreply.github.com>
@terrytangyuan @luke-hemisphere in version 3.3.8 this issue still exists. Example 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
|
Facing the same issue as @mhehle |
[Release Notes](https://github.com/argoproj/argo-workflows/releases/tag/v3.3.6) Includes 1 fix: - eat: Handle omitted nodes in DAG enhanced depends logic. Fixes [#8654](argoproj/argo-workflows#8654) Signed-off-by: jmeridth <jmeridth@gmail.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
Checklist
Summary
What happened?
When a task is Skipped/Omitted because a dependent task is skipped you can't use enhanced depends on that task.
What you expected to happen?
If a task is omitted/skipped due a dependent predecessor task being skipped, you should be able to use
depends.Skipped
on that task in another task.What version are you running? 3.3.1
Diagnostics
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.
The text was updated successfully, but these errors were encountered: