Skip to main content

process_initializer

Pool child process initializer.

Initialize the child pool process to ensure the correct app instance is used and things like logging works.

def process_initializer(
app: Celery,
hostname: string
)

Pool child process initializer. Initialize the child pool process to ensure the correct app instance is used and things like logging works.

Parameters​

NameTypeDescription
appCeleryThe Celery application instance to be associated with the worker process.
hostnamestringThe specific worker node hostname used for process titling and logging identification.

Returns​

TypeDescription
Nothing is returned; this function initializes the process state.