celery.app.builtins
celery.app.builtins
Built-in tasks that are always available in all app instances. E.g. chord, group and xmap.
celery.app.builtins.shared_task(constructor)[源代码]
Decorator that specifies a function that generates a built-in task.
The function will then be called for every new app instance created (lazily, so more exactly when the task registry for that app is needed).
The function must take a single app argument.
celery.app.builtins.load_shared_tasks(app)[源代码]
Create built-in tasks for an app instance.