Celery 1.0.6 (stable) documentation

This Page

Loader Base Classes - celery.loaders.base

class celery.loaders.base.BaseLoader

The base class for loaders.

Loaders handles to following things:

  • Reading celery client/worker configurations.

  • What happens when a task starts?

    See on_task_init().

  • What happens when the worker starts?

    See on_worker_init().

  • What modules are imported to find tasks?


Loader configuration.

on_task_init(task_id, task)

This method is called before a task is executed.


This method is called when the worker (celeryd) starts.