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

Function xsum

examples/stamping/tasks.py:87–89  ·  view source on GitHub ↗

Sum a list of numbers

(numbers: list)

Source from the content-addressed store, hash-verified

85
86@app.task
87def xsum(numbers: list) -> int:
88 """Sum a list of numbers"""
89 return sum(numbers)
90
91
92@app.task

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected