I just wrote a simple celery code,that will just add two number and print it,using celery..using the following code:
from scheduling.celery import app
*@app.task
def add(x, y):
print("sum is "+str(x+y))*
But the problem is when i call this function using :
*add.apply_async((3, 4))*
there's a raise exception error saying that
> Task
> celerytasktest.simplecelerytask.add[bafe33b6-3329-406a-b5c0-43eee9228273]
> raised unexpected: TypeError("unhashable type: 'dict'",)
I tried two days to find out the problem,but failed.
I am using the celery version 3.1.9
Thanks in advance