Skip to content

Commit

Permalink
Add decorator for running task every hour
Browse files Browse the repository at this point in the history
  • Loading branch information
zachaysan committed Aug 12, 2024
1 parent 6660af5 commit ee09e24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/organisations/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ee09e24

Please sign in to comment.