celery.concurrency.prefork

celery.concurrency.prefork

Pool implementation using multiprocessing.

class celery.concurrency.prefork.TaskPool(limit=None, putlocks=True, forking_enable=True, callbacks_propagate=(), \*options*)[源代码]

Multiprocessing Pool implementation.

celery.concurrency.prefork.process_initializer(app, hostname)[源代码]

Pool child process initializer.

This will initialize a child pool process to ensure the correct app instance is used and things like logging works.

celery.concurrency.prefork.process_destructor(pid, exitcode)[源代码]

Pool child process destructor

Dispatch the worker_process_shutdown signal.