-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using django-celery-beat, Scheduled tasks are triggered repeatedly #388
Comments
can you please use english |
Current version: Still having problems with tasks triggering repeatedly= = [2021-07-27 00:05:00,019: INFO/MainProcess] Scheduler: Sending due task generate_ss (rep.tasks.ss) beat_loop_interval=20 The task at 00:05:00 has been executed successfully and the execution time is <20s. |
There is also a different kind of problem from the above [2021-07-27 11:32:21,489: INFO/MainProcess] DatabaseScheduler: Schedule changed. interval:20s |
I also have this similar problem: beat sending task constantly, but only built-in task. This is issue link in django-celery-result project: celery/django-celery-results#275 These are logs: [2022-01-07 01:51:27,676: INFO/Beat] Scheduler: Sending due task celery.backend_cleanup (celery.backend_cleanup) |
what about celery/django-celery-results#275 (comment) ? Django settings USE_TZ = True and set Celery config enable_utc = True, the problem goes away. It looks like a problem about time zone and utc settings. |
Try it. |
#660) * Fix: The problem that Celery Beat scheduled tasks may be executed repeatedly * fix: 增加 TypeError 捕获 * fix: Add tests for `test_sync_not_saves_last_run_at_while_schedule_changed`
Set a timing policy: execute the task at 00:10 every day task_A
look at the beat log shows that
celery log:
other configuration parameters:
The text was updated successfully, but these errors were encountered: