From ee09e247643e580edc7403b67e6b71a5d548cfec Mon Sep 17 00:00:00 2001 From: Zach Aysan Date: Mon, 12 Aug 2024 18:14:02 +0000 Subject: [PATCH] Add decorator for running task every hour --- api/organisations/tasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/organisations/tasks.py b/api/organisations/tasks.py index f03a9fba3e81..fd7fab4e8924 100644 --- a/api/organisations/tasks.py +++ b/api/organisations/tasks.py @@ -84,6 +84,9 @@ def update_organisation_subscription_information_influx_cache(): subscription_info_cache.update_caches((SubscriptionCacheEntity.INFLUX,)) +@register_recurring_task( + run_every=timedelta(hours=1), +) @register_task_handler() def update_organisation_subscription_information_cache() -> None: subscription_info_cache.update_caches(