Jim Nisivoccia
11/08/2021, 3:22 PMowen
11/08/2021, 5:57 PMdocker logs
command works. It only reads stdout from the process with PID=1, and the default executor for jobs will run each step in a different process (so stdout from those steps will not be visible when you run docker logs
). If you don't mind the potential for a little bit of duplication in your log output, the easiest solution is likely to update your dagster.yaml file to look something like this:
python_logs:
managed_python_loggers:
- mylogger
dagster_handler_config:
handlers:
myHandler:
class: logging.FileHandler
level: INFO
filename: "/proc/1/fd/1"
(this will tell dagster to write all logs to the stdout of the process with PID=1, which docker logs
will pick up).Jim Nisivoccia
11/08/2021, 7:03 PMowen
11/09/2021, 8:45 PM