Skip to content

Glossary: Django Beyond the Basics

@shared_task

Also written: shared_task

The Celery decorator that marks a function as a task. A marked function can be queued with `.delay()` and run by a worker.

Where the book teaches it

Related terms

Celery.delay()Background task, task queue