Skip to main content

setup_worker_optimizations

Setup worker related optimizations.

def setup_worker_optimizations(
app: Celery,
hostname: string = null
) - > null

Setup worker related optimizations.

Parameters

NameTypeDescription
appCeleryThe Celery application instance to be optimized and set as the process-wide default.
hostnamestring = nullThe specific worker hostname to use for task registration; defaults to the system hostname if not provided.

Returns

TypeDescription
nullNothing is returned; the function modifies the application state and global worker configuration.