MCPcopy
hub / github.com/celery/celery / signature

Method signature

celery/app/task.py:882–891  ·  celery/app/task.py::Task.signature

Create signature. Returns: :class:`~celery.signature`: object for this task, wrapping arguments and execution options for a single task invocation.

(self, args=None, *starargs, **starkwargs)

Source from the content-addressed store, hash-verified

880 task_name=self.name, **kwargs)
881
882 def signature(self, args=None, *starargs, **starkwargs):
883 class="st">"""Create signature.
884
885 Returns:
886 :class:`~celery.signature`: object for
887 this task, wrapping arguments and execution options
888 for a single task invocation.
889 class="st">"""
890 starkwargs.setdefault(&class="cm">#x27;app', self.app)
891 return signature(self, args, *starargs, **starkwargs)
892 subtask = signature
893
894 def s(self, *args, **kwargs):

Callers 15

sMethod · 0.95
siMethod · 0.95
test_priorityMethod · 0.45
test_priority_chainMethod · 0.45
test_get_optional_argFunction · 0.45
test_signatureMethod · 0.45

Calls 2

signatureFunction · 0.90
setdefaultMethod · 0.45

Tested by 11

test_priorityMethod · 0.36
test_priority_chainMethod · 0.36
test_get_optional_argFunction · 0.36
test_signatureMethod · 0.36
test_runMethod · 0.36