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)
- [Answer]-List in local working fine but in server works inverse
- [Answer]-Representing many to many model in django as json
- [Answer]-Django-admin.py does nothing except showing all available options
- [Answer]-Deploying a Django site with sensitive code on a host
- [Answer]-Declare variable if variable declared already
Source:stackexchange.com