Is there a recommended debug way of shelltasks non...
# prefect-community
a
Is there a recommended debug way of shelltasks non-zero exit code in the docker-runner ?
k
What is your shelltask trying to do?
a
aws s3 cp <s://source-bucket> ./local-inside-docker-container
k
Ah ok what error did you get?
a
exit code 2
according to UI at could.
All of credential files are copied into container and the same command well works inside the container with
docker run -it --rm container-name bash
k
I think the most you can do is:
Copy code
ShellTask(..., return_all=True, log_stderr=True, stream_output=True)
a
Thanks!! I’ll try it !!!