Hi there. I have a `ShellTask` that runs a python ...
# ask-community
p
Hi there. I have a
ShellTask
that runs a python script. I am trying to get the logs to show in Prefect Cloud in real time. I am trying to use the PYTHONUNBUFFERED environment variable to force a to print output as it happens but it's not working. I also tried calling the script with the
-u
option. Any ideas?
k
Are you doing:
Copy code
ShellTask(..., return_all=True, stream_output=True)
?
p
I am using
stream_output=True
. Will test the other one.
I did not make a difference.
k
Will try this
What does your Python script do? Just making sure your shell task is doing “python aaa.py”?
When you mean it doesn’t work, do you get all the logs at the end? or it’s not streamed in real time?