-
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
fix: prevent stdout from disappearing in script templates. Fixes #11330 #11368
Merged
terrytangyuan
merged 1 commit into
argoproj:master
from
boiledfroginthewell:fix-empty-output
Aug 10, 2023
Merged
fix: prevent stdout from disappearing in script templates. Fixes #11330 #11368
terrytangyuan
merged 1 commit into
argoproj:master
from
boiledfroginthewell:fix-empty-output
Aug 10, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: boiledfroginthewell <boiledfroginthewell@users.noreply.github.com>
@alexec Could you help review this when you get a chance? |
terrytangyuan
approved these changes
Aug 10, 2023
I got a fail test
From man page
|
sonbui00
added a commit
to sonbui00/argo-workflows
that referenced
this pull request
Aug 15, 2023
Signed-off-by: Son Bui <sonbv00@gmail.com>
terrytangyuan
pushed a commit
that referenced
this pull request
Aug 15, 2023
5 tasks
3 tasks
cbuchli
added a commit
to helio/argo-workflows
that referenced
this pull request
Oct 4, 2023
terrytangyuan
pushed a commit
that referenced
this pull request
Oct 19, 2023
dpadhiar
pushed a commit
to dpadhiar/argo-workflows
that referenced
this pull request
May 9, 2024
…proj#11330 (argoproj#11368) Signed-off-by: boiledfroginthewell <boiledfroginthewell@users.noreply.github.com> Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>
dpadhiar
pushed a commit
to dpadhiar/argo-workflows
that referenced
this pull request
May 9, 2024
Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #11330
Motivation
Outputs of the executed command are asynchronously read and copied to
cmd.Stdout
.cmd.Stdout
must be closed after copies are done otherwise command outputs are gone.As described below, however, copies can never be end because sub-processes can keep running and can write to stdout indefinitely.
argo-workflows/workflow/executor/os-specific/signal_darwin.go
Lines 27 to 38 in 6166464
Modifications
Wait()
is added to wait the copy.WaitDelay
is also added. It will close the pipes (stdout/stderr) of the executed command to stop sub-processes writing any more texts.Verification
Tests were added.
I also ran the following command for more than an hour.