Skip to content

Commit

Permalink
fix: Make influx cache task recurring (#4495)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Elwell <matthew.elwell@flagsmith.com>
  • Loading branch information
zachaysan and matthewelwell authored Aug 15, 2024
1 parent 9bae21c commit cb8472d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/organisations/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ def send_org_subscription_cancelled_alert(
@register_recurring_task(
run_every=timedelta(hours=6),
)
def update_organisation_subscription_information_influx_cache_recurring():
"""
We're redefining the task function here to register a recurring task
since the decorators don't stack correctly. (TODO)
"""
update_organisation_subscription_information_influx_cache() # pragma: no cover


@register_task_handler()
def update_organisation_subscription_information_influx_cache():
subscription_info_cache.update_caches((SubscriptionCacheEntity.INFLUX,))
Expand Down

0 comments on commit cb8472d

Please sign in to comment.