-
Notifications
You must be signed in to change notification settings - Fork 148
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
Define output of an async task (started with await: false
)
#1004
Comments
await: false
)
As far as I understand it, an async task should output its transformed input. IMHO, runtimes should ignore output transformations and export, as async task should not be able to output. As for "standard" run task output, it's a discussion we had in the past with @ricardozanini and @JBBianchi. If I remember well, it should be the task's stdout, but we should probably provide a flag that indicates whether or not to deserialize it, in case it's JSON or YAML encoded. We should probably open another issue to address that specific concern, which might also be related to #998 |
I also thought about returning {
"stdout": "...",
"stderr": "..."
} since some tools print a lot to document: {}
do:
- runContainer:
run:
container:
image: alpine:latest
output: "stdout" # "stdout" | "stderr" | "all" | "none" I am unsure if we should handle JSON/YAML deserialization since jq offers Do we have to introduce the same thing for |
@matthias-pichler Great idea! And yes, I would extend your proposal to all processes, not just |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
What would you like to be added:
Something I missed in the PR #995 that introduced the
await
property is to define what the (raw) output of a task withawait: false
is.We should document the output of a
run
task in general. Because what is the output of arun.container
task?Why is this needed:
Dicjment the output of an async task
The text was updated successfully, but these errors were encountered: