Eunice Tan
03/01/2022, 4:49 AMdagster job execute …
. However, the only logs I see in the kubernetes pod is
2022-03-01 03:07:12 +0000 - dagster - DEBUG - run_microdump - 900c13db-7ef0-4f9a-aa86-ca258e2e2ea9 - 7 - RUN_START - Started execution of run for "run_microdump".
2022-03-01 03:07:12 +0000 - dagster - DEBUG - run_microdump - 900c13db-7ef0-4f9a-aa86-ca258e2e2ea9 - 7 - ENGINE_EVENT - Executing steps using multiprocess executor: parent process (pid: 7)
2022-03-01 03:07:12 +0000 - dagster - DEBUG - run_microdump - 900c13db-7ef0-4f9a-aa86-ca258e2e2ea9 - 7 - get_full_copy_tables - ENGINE_EVENT - Launching subprocess for get_full_copy_tables
2022-03-01 03:07:13 +0000 - dagster - DEBUG - run_microdump - 900c13db-7ef0-4f9a-aa86-ca258e2e2ea9 - 10 - get_full_copy_tables - ENGINE_EVENT - Starting initialization of resources [devdb_tables_fetcher, io_manager].
2022-03-01 03:07:13 +0000 - dagster - DEBUG - run_microdump - 900c13db-7ef0-4f9a-aa86-ca258e2e2ea9 - 10 - get_full_copy_tables - ENGINE_EVENT - Finished initialization of resources [devdb_tables_fetcher, io_manager].
2022-03-01 03:07:13 +0000 - dagster - DEBUG - run_microdump - 900c13db-7ef0-4f9a-aa86-ca258e2e2ea9 - 7 - ENGINE_EVENT - Multiprocess executor: parent process exiting after 1.16s (pid: 7)
2022-03-01 03:07:13 +0000 - dagster - DEBUG - run_microdump - 900c13db-7ef0-4f9a-aa86-ca258e2e2ea9 - 7 - RUN_SUCCESS - Finished execution of run for "run_microdump".
and I don’t see logs from my python code itself.
I’ve tried logging with both <http://context.log.info|context.log.info>
and get_dagster_logger
and both don’t seem to show up. I was wondering if there are any other configurations I should be checking in this case?owen
03/01/2022, 11:45 PMdagster job execute
with the default multi-process executor, a new process will be spun up for each of the steps, and so logs from those steps will not appear in the host process' stdout. A similar issue was documented by a user here: https://dagster.slack.com/archives/C01U954MEER/p1636394317019700?thread_ts=1636384926.017800&cid=C01U954MEER