https://prefect.io logo
#prefect-community
Title
# prefect-community
a

Atsushi Saito

04/12/2022, 6:18 PM
Is there a recommended debug way of shelltasks non-zero exit code in the docker-runner ?
k

Kevin Kho

04/12/2022, 6:19 PM
What is your shelltask trying to do?
a

Atsushi Saito

04/12/2022, 6:20 PM
aws s3 cp <s://source-bucket> ./local-inside-docker-container
k

Kevin Kho

04/12/2022, 6:21 PM
Ah ok what error did you get?
a

Atsushi Saito

04/12/2022, 6:21 PM
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

Kevin Kho

04/12/2022, 6:22 PM
I think the most you can do is:
Copy code
ShellTask(..., return_all=True, log_stderr=True, stream_output=True)
a

Atsushi Saito

04/12/2022, 6:23 PM
Thanks!! I’ll try it !!!
7 Views