From aa0e8edb8bab10de0e96ac4d77ae796442b0eda3 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 21 Apr 2021 11:26:17 +0200 Subject: [PATCH] *: make tasks run every 60 minutes not :00 every hour Signed-off-by: Jens Langhammer --- authentik/admin/settings.py | 2 +- authentik/outposts/settings.py | 2 +- authentik/sources/ldap/settings.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/authentik/admin/settings.py b/authentik/admin/settings.py index 57e0de6e6..3072c339e 100644 --- a/authentik/admin/settings.py +++ b/authentik/admin/settings.py @@ -4,7 +4,7 @@ from celery.schedules import crontab CELERY_BEAT_SCHEDULE = { "admin_latest_version": { "task": "authentik.admin.tasks.update_latest_version", - "schedule": crontab(minute=0), # Run every hour + "schedule": crontab(minute="*/60"), # Run every hour "options": {"queue": "authentik_scheduled"}, } } diff --git a/authentik/outposts/settings.py b/authentik/outposts/settings.py index f02d4fa2a..d7e0fc6e8 100644 --- a/authentik/outposts/settings.py +++ b/authentik/outposts/settings.py @@ -9,7 +9,7 @@ CELERY_BEAT_SCHEDULE = { }, "outposts_service_connection_check": { "task": "authentik.outposts.tasks.outpost_service_connection_monitor", - "schedule": crontab(minute=0, hour="*"), + "schedule": crontab(minute="*/60"), "options": {"queue": "authentik_scheduled"}, }, "outpost_token_ensurer": { diff --git a/authentik/sources/ldap/settings.py b/authentik/sources/ldap/settings.py index 4acdfbfdf..850e9a04d 100644 --- a/authentik/sources/ldap/settings.py +++ b/authentik/sources/ldap/settings.py @@ -8,7 +8,7 @@ AUTHENTICATION_BACKENDS = [ CELERY_BEAT_SCHEDULE = { "sources_ldap_sync": { "task": "authentik.sources.ldap.tasks.ldap_sync_all", - "schedule": crontab(minute=0), # Run every hour + "schedule": crontab(minute="*/60"), # Run every hour "options": {"queue": "authentik_scheduled"}, } }