You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
# Create your tasks here |
|
from celery import shared_task |
|
|
|
|
|
@shared_task |
|
def add(x, y): |
|
return x + y |
|
|
|
|
|
@shared_task |
|
def mul(x, y): |
|
return x * y |
|
|
|
|
|
@shared_task |
|
def xsum(numbers): |
|
return sum(numbers)
|
|
|