So, I use jango with celery. rabbitmq is a broker. redis is a cache. mysql is db. (everything in localhost)
- I am using python2.7 and using virtualenv virtual environment
- I am running a redis server (local) in the default port
In the new terminal, I run
python manage.py runserver
In the new terminal, I start using celery
celery -A ds_django worker -B -l warning
And this procedure was used to work. But now, when I run the celery team, I get the following
[2016-07-12 09:15:20,113: CRITICAL/MainProcess] Frequent restarts detected: RestartFreqExceeded('5 in 1s',) Traceback (most recent call last): File "/Users/user/Desktop/ds-django/ds_django/newDs/lib/python2.7/site- packages/celery/worker/consumer.py", line 285, in start self._restart_state.step() File "/Users/user/Desktop/ds-django/ds_django/newDs/lib/python2.7/site-packages/billiard/common.py", line 130, in step raise self.RestartFreqExceeded("%r in %rs" % (R, self.maxT)) RestartFreqExceeded: 5 in 1s
I have absolutely no clue why this is happening or how to fix it. I searched Google and StackOverFlow again and again, but did not use.
One of the reasons why I think this could happen was that once ago I launched 4 celery workers and then coldly closed them all. Perhaps because of this, he says that the restart frequency is exceeded, but not sure. And I donโt know how to fix it. Perhaps some configuration file settings, but what setting and where there is also no clue.
If any other information is required, I will provide. Any help is appreciated. Thanks.
python celery django-celery celerybeat djcelery
Raj v jain
source share