[Answer]-Pass parameter request to a celery task in Django

1👍

This does not work with the standard pickler. See more here (basically a duplicate): passing django request object to celery task

0👍

As you can read from the docs your example should work.

from celery import task

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

add.delay(2, 2)

0👍

This should work as long as you’re using standard pickle serializer.

Leave a comment