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

Function add

t/integration/tasks.py:60–65  ·  view source on GitHub ↗

Add two or three numbers.

(x, y, z=None)

Source from the content-addressed store, hash-verified

58
59@shared_task
60def add(x, y, z=None):
61 """Add two or three numbers."""
62 if z:
63 return x + y + z
64 else:
65 return x + y
66
67
68@shared_task

Callers 2

test_simple_callMethod · 0.70
test_wrong_argumentsMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_simple_callMethod · 0.56
test_wrong_argumentsMethod · 0.56