You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Celerybeat runs periodic tasks every 5 seconds regardless of interval #943
Regardless of what interval I define for my periodic tasks - which I adjust through the django admin - celerybeat fires off the periodic tasks every 5 seconds. This occurs regardless of the interval. Interestingly, however, when the periodic task is set disabled, celerybeat stops sending tasks, so it must be responsive to the scheduler at some level.
Could you try upgrading to celery 3.0.7? Also please delete an existing
celerybeat-schedule file if any.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/943#issuecomment-8096911.
Just to confirm - I have installed celery 3.0.7 now (although django-celery
is still 3.0.6) and am still having the same issues. I am also using Redis
as a broker.
I have even dropped the DB, in case it was something caused by my south
migrations, yet the problem still persists.
Please let me know if you'd like me to try anything else.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/943#issuecomment-8112944.
I have a task scheduled for 04:00 AM and found that it's executed 2151 times (every 5 seconds) from 07:00 АМ. to 10:00 АМ and then it stops. Time here is GMT+3
but if I set CELERY_ENABLE_UTC = False and NOT set CELERY_TIMEZONE - all work fine without timezone
Problem only with CELERY_ENABLE_UTC = False and set CELERY_TIMEZONE
Hello. I'm using celery == 4.0.1 and django-celery-beat==1.1.1 with django == 2.0.3.
I have the same problem if CELERY_TIME_ZONE option is given. If I don't do this - everything is ok, but I have problem with execution time of my task.
Activity
ask commentedon Aug 28, 2012
Could you try upgrading to celery 3.0.7? Also please delete an existing
celerybeat-schedulefile if any.thongly commentedon Aug 28, 2012
Thanks - Will try that and update later today.
On Tue, Aug 28, 2012 at 12:02 PM, Ask Solem Hoel
[email protected]:
erikcw commentedon Aug 29, 2012
I'm having the same problem on 3.0.7 (django-celery 3.0.6), redis broker.
thongly commentedon Aug 29, 2012
Just to confirm - I have installed celery 3.0.7 now (although django-celery
is still 3.0.6) and am still having the same issues. I am also using Redis
as a broker.
I have even dropped the DB, in case it was something caused by my south
migrations, yet the problem still persists.
Please let me know if you'd like me to try anything else.
On Tue, Aug 28, 2012 at 9:38 PM, erikcw [email protected] wrote:
thongly commentedon Aug 30, 2012
I have upgraded to 3.0.8 and the problem still occurs. Issue should be reopened.
ask commentedon Aug 30, 2012
Note, anyone using the database scheduler have to reset the
last_run_atfields for each periodic task:ju-popov commentedon Oct 2, 2012
I have a task scheduled for 04:00 AM and found that it's executed 2151 times (every 5 seconds) from 07:00 АМ. to 10:00 АМ and then it stops. Time here is GMT+3
Also:
python 2.7.3
django 1.4.1 (USE_TZ = True)
virtualenv
django-celery 3.0.6
celery 3.0.6
last_run_at is None
ju-popov commentedon Nov 29, 2012
Has anyone with similar problem?
grigoriytretyakov commentedon Jun 10, 2015
I have one. But in my case task runs every 5 minutes instead of run once a day.
settings.py:
Celery works under supervisord:
After 00:30 at midnight Celery sends task first time and then keep firing it until 03:30.
thedrow commentedon Jun 14, 2015
I'm reopening this issue due to @monax's report.
Can you please provide steps to reproduce?
grigoriytretyakov commentedon Jun 15, 2015
@thedrow Wait a couple of days, please. I'll try to make mini project to reproduce issue.
thedrow commentedon Jun 15, 2015
Wonderful! thanks.
grigoriytretyakov commentedon Jun 15, 2015
https://github.com/monax/celeryissue
In repo there is requirements.txt with all dependencies. As a broker I use rabbitmq.
In settings.py there is a code which schedules a task to next minute after start.
Create a new virtualenv using pyvenv (python 3.4.3). Install requirements.txt and run in two terminals:
For beat you'll see:
For worker you'll see something like that:
thedrow commentedon Jun 15, 2015
I'll run it and let you know.
9 remaining items
shtalinberg commentedon Nov 1, 2017
I also have this problem with django 1.10.8 and celery==4.1.0 without django-celery-beat
CELERY_ENABLE_UTC = False
CELERY_TIMEZONE = 'Europe/Kiev'
but if I set CELERY_ENABLE_UTC = False and NOT set CELERY_TIMEZONE - all work fine without timezone
Problem only with CELERY_ENABLE_UTC = False and set CELERY_TIMEZONE
thedrow commentedon Nov 1, 2017
I released a new version of django-celery-beat. Can you please try again?
If there's still a problem please open a new issue.
shtalinberg commentedon Nov 1, 2017
I have this problem without django-celery-beat
rollue commentedon Nov 6, 2017
Fix is not out, but yet to be merged: #68
vascubrian commentedon Feb 16, 2018
Flask I am having problem
vascubrian commentedon Feb 16, 2018
from celery.schedules import crontab
CELERY_TASK_RESULT_EXPIRES = 30
CELERY_TIMEZONE = 'Africa/Nairobi'
CELERY_ACCEPT_CONTENT = ['json', 'msgpack', 'yaml']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERYBEAT_SCHEDULE = {
'test-celery': {
'task': 'execute_celery.sendSms',
# Every minute
'schedule': crontab(minute="*"),
}
}
vascubrian commentedon Feb 16, 2018
how to run above things
auvipy commentedon Feb 17, 2018
instal django celery beat from github master
Tur8008 commentedon Apr 13, 2018
Hello. I'm using celery == 4.0.1 and django-celery-beat==1.1.1 with django == 2.0.3.
I have the same problem if CELERY_TIME_ZONE option is given. If I don't do this - everything is ok, but I have problem with execution time of my task.
rinkuameotech commentedon Feb 4, 2019
I am having the same issue it is firing the task every second
I am using celery == 4.2.1 and django-celery-beat==1.1.1 with django==1.11
auvipy commentedon Feb 5, 2019
try https://github.com/celery/django-celery-beat/releases/tag/v1.4.0 or from master
andodet commentedon May 11, 2020
I am having a very similar problem in Flask. The task gets executed every 10 seconds, ignoring the
crontabschedule altoghether.Environment info:
The
crontabschedule is specified, alongside other Celery settings, in the following way in myconfig.pyfile:When the container starts, the task frequency is set to 10 seconds
Notice that no timezone has been declared
smyja commentedon May 15, 2022
Ff
Did you resolve it?
thedrow commentedon May 16, 2022
Yes, long time ago. Please upgrade to the latest Celery version.
melgart commentedon Apr 21, 2023
@thedrow Can you please let us know which specific Celery version this was fixed in? 🙏🏻