MCPcopy Create free account
hub / github.com/celery/celery / delay

Method delay

celery/app/task.py:574–585  ·  view source on GitHub ↗

Star argument version of :meth:`apply_async`. Does not support the extra options enabled by :meth:`apply_async`. Arguments: *args (Any): Positional arguments passed on to the task. **kwargs (Any): Keyword arguments passed on to the task. Returns:

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

572 return instantiate(self.Strategy, self, app, consumer, **kwargs)
573
574 def delay(self, *args, **kwargs):
575 """Star argument version of :meth:`apply_async`.
576
577 Does not support the extra options enabled by :meth:`apply_async`.
578
579 Arguments:
580 *args (Any): Positional arguments passed on to the task.
581 **kwargs (Any): Keyword arguments passed on to the task.
582 Returns:
583 celery.result.AsyncResult: Future promise.
584 """
585 return self.apply_async(args, kwargs)
586
587 def apply_async(self, args=None, kwargs=None, task_id=None, producer=None,
588 link=None, link_error=None, shadow=None, **options):

Callers 11

unlock_graphFunction · 0.45
crawlFunction · 0.45
run_then_revokeFunction · 0.45
revoke_then_runFunction · 0.45
run_example1Function · 0.45
run_example2Function · 0.45
run_example3Function · 0.45
run_example_with_replaceFunction · 0.45
start_workerFunction · 0.45
add_to_chordMethod · 0.45
on_replaceMethod · 0.45

Calls 1

apply_asyncMethod · 0.95

Tested by

no test coverage detected