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
| Name | Type | Description |
|---|---|---|
| app | Celery | The Celery application instance to be associated with the worker process. |
| hostname | string | The specific worker node hostname used for process titling and logging identification. |
Returns
| Type | Description |
|---|---|
| Nothing is returned; this function initializes the process state. |