tasks.py 161 B

12345678910111213141516
  1. from . import app
  2. @app.task
  3. def add(x, y):
  4. return x + y
  5. @app.task
  6. def mul(x, y):
  7. return x * y
  8. @app.task
  9. def xsum(numbers):
  10. return sum(numbers)