spacetelescope / drizzlepac

AstroDrizzle for HST images.
https://drizzlepac.readthedocs.io
BSD 3-Clause "New" or "Revised" License
50 stars 39 forks source link

Logging when multiprocessing needs to be fixed #799

Closed stscijgbot-hstdp closed 2 years ago

stscijgbot-hstdp commented 4 years ago

Issue HLA-423 was created on JIRA by Warren Hack:

Work to get Drizzlepac to build and run under Windows revealed that the logging implemented in AstroDrizzle silently fails under Linux and Mac yets throws an Exception under Windows. The initial workaround is to turn off multiprocessing when running AstroDrizzle under Windows (as implemented under Drizzlepac PR #⁠794).

The Python documentation discusses the best practice for performing logging while multiprocessing in this Section of the Logging Cookbook. This method will require setting up Socket Server/Client system within the code to manage the logs from each thread.

This issue does not significantly impact pipeline operations as it only affects the logs from the single-drizzle step, but it does cause problems for supporting this code on all platforms (particularly, Windows).

stsci-hack commented 2 years ago

Resolved with #794.