RF: Don't assume that setup_logging has been called.
- Dec 06, 2022
-
-
in a new process, on a different machine, when running on a cluster.
a52382c2
-
The original design for the setup_logging
/redirect_logging
functions assumed that pipeline jobs would be executed in the same process as the main pipeline-setup process; specifically, the redirect_logging
function assumed that setup_logging
has been called. This is not the case, as when running on a cluster, pipeline jobs will be executed in a self-contained python process.
This MR adjusts the redirect_logging
function so that it will work in either scenario.
in a new process, on a different machine, when running on a cluster.