celery run old code and new code at same time #7535
Replies: 10 comments 1 reply
-
Purge should have purged everything (celery -A projectName purge), but if you're using the Django Database Scheduler in Django Admin area, and have not removed unwanted tasks using this, it might be re-instating them. |
Beta Was this translation helpful? Give feedback.
-
Didi you find any solution to it? I am having same problem with my local machine and in my production server. |
Beta Was this translation helpful? Give feedback.
-
I faced with the same problem today. The steps that helped me:
|
Beta Was this translation helpful? Give feedback.
-
Same problem. The above solution is not working for me. Any help? |
Beta Was this translation helpful? Give feedback.
-
Would love to have a solution on that. That'a a big problem for me |
Beta Was this translation helpful? Give feedback.
-
Is there any fix for this issue? Or is there any workaround to stop making celery pick up old code. |
Beta Was this translation helpful? Give feedback.
-
Make sure that you don't have any commented codes in any task. If there is any, delete it. This made my head spin and at last I found the problem was this. |
Beta Was this translation helpful? Give feedback.
-
So, I found that after killing (control+c) the process, it was still on the background. I had hundreds! so I killed it all and it started to get the new code again |
Beta Was this translation helpful? Give feedback.
-
I have encountered with the same issue once, there may be chances that celery is running somewhere else too, please be sure your task is executing by the same celery worker. |
Beta Was this translation helpful? Give feedback.
-
I am running a email queue task using celery and rabbitmq as broker when i pushed new changes to the code celery is picking old code and failing the task when the task is triggered again then its taking new code. So is there anyway to resolve this , only new changes in task is getting affected and getting failed. |
Beta Was this translation helpful? Give feedback.
-
Hi,all!!
I use celery to run my django task. After i change my code yesterday, i find celery run both my old code and new code.So when i pass same parameter to task, sometimes i get error, sometimes it excutes successfully. i have tryd purge, restart celery, but all uesless.
Can anyone tell me what happened
Beta Was this translation helpful? Give feedback.
All reactions