https://prefect.io logo
Title
c

Christian Nuss

04/07/2022, 4:26 PM
hey all! is there a way to have
stdout
generated inside a container from a
DockerRun
or
KubernetesRun
be provided back into Prefect following the successful execution of the flow?
k

Kevin Kho

04/07/2022, 4:29 PM
Is
stdout
generated from a task? Or some other process? Did you try:
@task(log_stdout=True)
?
c

Christian Nuss

04/07/2022, 4:40 PM
ah possibly a
ShellTask
will get me what i need! i see theres a footnote in https://docs.prefect.io/api/latest/tasks/shell.html#shelltask
This task combines stderr and stdout
is there a configuration to only and always get stdout?
k

Kevin Kho

04/07/2022, 4:41 PM
Try something like?
ShellTask(..., return_all=True, log_stderr=True, stream_output=True)
c

Christian Nuss

04/07/2022, 4:42 PM
ok i'll give that a shot! thanks!