If any worker raises inside pool.imap_unordered(), the exception propagates through the for loop and the results list is left incomplete. The finally block correctly restores the log level but the error is swallowed with no diagnostic information. Added an explicit except block that logs the full traceback via exc_info=True before re-raising, making batch worker failures visible in logs without changing the existing control flow.
52 KiB
52 KiB