Skip to content

Commit

Permalink
fix: Add decorator for running task every hour (#4481)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachaysan authored Aug 14, 2024
1 parent 9e25990 commit a395a47
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 @@ -79,6 +79,9 @@ def send_org_subscription_cancelled_alert(
)


@register_recurring_task(
run_every=timedelta(hours=6),
)
@register_task_handler()
def update_organisation_subscription_information_influx_cache():
subscription_info_cache.update_caches((SubscriptionCacheEntity.INFLUX,))
Expand Down

0 comments on commit a395a47

Please sign in to comment.