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?

conf

Loader configuration.

on_task_init(task_id, task)

This method is called before a task is executed.

on_worker_init()

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