Slide 18
Slide 18 text
Tasks: Calling
2 ways:
Using a shortcut and options defined at the moment a
task is created (@shared_task, @task).
Task.delay(arg1, kwarg1=value1)
Using the “long” way, It allows to customize a task call
modifying the default options.
Task.apply_async(args=l, kwargs=d, **options)
http://docs.celeryproject.org/en/latest/reference/celery.app.task.html#celery.app.task.Task.apply_async