compass.utilities.logs.LQ#

class LQ[source]#

Bases: object

Logging queue using lazy loading of multiprocessing queue

Have to load it lazily so that multiprocessing context can still be set elsewhere in the code (e.g. in the CLI). If the queue is loaded at the module level, the multiprocessing context is set to “fork” by default on unix systems, which causes issues when the process pool executor is launched. By loading lazily, we can ensure that the multiprocessing context is set to “spawn” in the CLI before the queue is loaded.

Methods

Attributes

QUEUE

Logging queue instance

QUEUE = <multiprocessing.queues.Queue object>#

Logging queue instance