You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is just a temporary fix, so I just show my code here. Hope helpful.
The yaml below will reproduce the issue.
apiVersion: argoproj.io/v1alpha1kind: WorkflowTemplatemetadata:
namespace: defaultname: mytemplatespec:
templates:
- name: testtemplate: test-main
- name: test-mainnodeSelector:
kubernetes.io/os: windowscontainer:
- name: mainimage: mcr.microsoft.com/windows/nanoserver:ltsc2022 # I used the nanoserver-ltsc2022 but the issue should also exist on ltsc2019command: ["cmd", "/s", "/c"]args: ["call exit /b 1"]
The text was updated successfully, but these errors were encountered:
The command exit code always be '0' in windows container. Because the wait function on windows only check the err but not with the exit code of the stat (The error might be redirect).
https://github.com/argoproj/argo-workflows/blob/aa59b43748f78e599709add871af7ec14e1fd3c1/workflow/executor/os-specific/signal_windows.go#L29
I tried to fix this by the code below:
This is just a temporary fix, so I just show my code here. Hope helpful.
The yaml below will reproduce the issue.
The text was updated successfully, but these errors were encountered: