Jun 6, 2021
If worker_process is defined in the same script as the queue, it is likely that the queue is a globally accessible. Hence, worker_process can interact with the queue without the queue being passed to it explicitly. However, if worker_process is defined in a separate module, then the queue must be passed as an argument. I usually put worker_process in its own module, so it is a habit of mine to always pass queues as argument.