settei.presets.celery
— Preset for Celery¶
-
class
settei.presets.celery.
WorkerConfiguration
(config: typing.Mapping[str, object] = {}, **kwargs)¶ The application object mixin which holds configuration for Celery.
-
on_worker_loaded
(app)¶ Be invoked when a Celery app is ready.
Parameters: app ( celery.Celery
) – a ready celery app
-
worker_broker_url
¶ The url of the broker used by Celery. See also Celery’s and Kombu’s docs about broker urls:
http://docs.celeryproject.org/en/latest/configuration.html#broker-url http://kombu.readthedocs.org/en/latest/userguide/connections.html#connection-urls
-
worker_config
¶ (
typing.Mapping
[str
,object
]) The configuration maping for worker that will go toCelery.conf
.
-
worker_result_backend
¶ The backend used by Celery to store task results. See also Celery’s docs about result backends:
http://docs.celeryproject.org/en/latest/configuration.html#celery-result-backend
-