Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

using django celery 5.0

from .celery import app


@app.task
def add(x, y):
    return x + y


@app.task
def mul(x, y):
    return x * y


@app.task
def xsum(numbers):
    return sum(numbers)
Source by docs.celeryq.dev #
 
PREVIOUS NEXT
Tagged: #django #celery
ADD COMMENT
Topic
Name
8+9 =