setup_worker_optimizations
Setup worker related optimizations.
def setup_worker_optimizations(
app: Celery,
hostname: string = null
) - > null
Setup worker related optimizations.
Parameters
| Name | Type | Description |
|---|---|---|
| app | Celery | The Celery application instance to be optimized and set as the process-wide default. |
| hostname | string = null | The specific worker hostname to use for task registration; defaults to the system hostname if not provided. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the function modifies the application state and global worker configuration. |