Celery application. Arguments: main (str): Name of the main module if running as `__main__`. This is used as the prefix for auto-generated task names. Keyword Arguments: broker (str): URL of the default broker used. backend (Union[str, Type[celery.backen
| 246 | |
| 247 | |
| 248 | class Celery: |
| 249 | """Celery application. |
| 250 | |
| 251 | Arguments: |
| 252 | main (str): Name of the main module if running as `__main__`. |
| 253 | This is used as the prefix for auto-generated task names. |
| 254 | |
| 255 | Keyword Arguments: |
| 256 | broker (str): URL of the default broker used. |
| 257 | backend (Union[str, Type[celery.backends.base.Backend]]): |
| 258 | The result store backend class, or the name of the backend |
| 259 | class to use. |
| 260 | |
| 261 | Default is the value of the :setting:`result_backend` setting. |
| 262 | autofinalize (bool): If set to False a :exc:`RuntimeError` |
| 263 | will be raised if the task registry or tasks are used before |
| 264 | the app is finalized. |
| 265 | set_as_current (bool): Make this the global current app. |
| 266 | include (List[str]): List of modules every worker should import. |
| 267 | |
| 268 | amqp (Union[str, Type[AMQP]]): AMQP object or class name. |
| 269 | events (Union[str, Type[celery.app.events.Events]]): Events object or |
| 270 | class name. |
| 271 | log (Union[str, Type[Logging]]): Log object or class name. |
| 272 | control (Union[str, Type[celery.app.control.Control]]): Control object |
| 273 | or class name. |
| 274 | tasks (Union[str, Type[TaskRegistry]]): A task registry, or the name of |
| 275 | a registry class. |
| 276 | fixups (List[str]): List of fix-up plug-ins (e.g., see |
| 277 | :mod:`celery.fixups.django`). |
| 278 | config_source (Union[str, class]): Take configuration from a class, |
| 279 | or object. Attributes may include any settings described in |
| 280 | the documentation. |
| 281 | task_cls (Union[str, Type[celery.app.task.Task]]): base task class to |
| 282 | use. See :ref:`this section <custom-task-cls-app-wide>` for usage. |
| 283 | """ |
| 284 | |
| 285 | #: This is deprecated, use :meth:`reduce_keys` instead |
| 286 | Pickler = AppPickler |
| 287 | |
| 288 | SYSTEM = platforms.SYSTEM |
| 289 | IS_macOS, IS_WINDOWS = platforms.IS_macOS, platforms.IS_WINDOWS |
| 290 | |
| 291 | #: Name of the `__main__` module. Required for standalone scripts. |
| 292 | #: |
| 293 | #: If set this will be used instead of `__main__` when automatically |
| 294 | #: generating task names. |
| 295 | main = None |
| 296 | |
| 297 | #: Custom options for command-line programs. |
| 298 | #: See :ref:`extending-commandoptions` |
| 299 | user_options = None |
| 300 | |
| 301 | #: Custom bootsteps to extend and modify the worker. |
| 302 | #: See :ref:`extending-bootsteps`. |
| 303 | steps = None |
| 304 | |
| 305 | builtin_fixups = BUILTIN_FIXUPS |
no outgoing calls
searching dependent graphs…