Skip to content

Commit

Permalink
feat(insights): Remove insight cache tasks from schedule (#24532)
Browse files Browse the repository at this point in the history
  • Loading branch information
webjunkie authored Aug 23, 2024
1 parent 4a0dbb1 commit 8d710d7
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions posthog/tasks/scheduled.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@
redis_celery_queue_depth,
redis_heartbeat,
schedule_all_subscriptions,
schedule_cache_updates_task,
send_org_usage_reports,
start_poll_query_performance,
stop_surveys_reached_target,
sync_all_organization_available_product_features,
sync_insight_cache_states_task,
update_event_partitions,
update_quota_limiting,
verify_persons_data_in_sync,
Expand Down Expand Up @@ -148,21 +146,6 @@ def setup_periodic_tasks(sender: Celery, **kwargs: Any) -> None:
# Sync all Organization.available_product_features every hour, only for billing v1 orgs
sender.add_periodic_task(crontab(minute="30", hour="*"), sync_all_organization_available_product_features.s())

sync_insight_cache_states_schedule = get_crontab(settings.SYNC_INSIGHT_CACHE_STATES_SCHEDULE)
if sync_insight_cache_states_schedule:
sender.add_periodic_task(
sync_insight_cache_states_schedule,
sync_insight_cache_states_task.s(),
name="sync insight cache states",
)

add_periodic_task_with_expiry(
sender,
settings.UPDATE_CACHED_DASHBOARD_ITEMS_INTERVAL_SECONDS,
schedule_cache_updates_task.s(),
"check dashboard items",
)

sender.add_periodic_task(crontab(minute="*/15"), check_async_migration_health.s())

if settings.INGESTION_LAG_METRIC_TEAM_IDS:
Expand Down

0 comments on commit 8d710d7

Please sign in to comment.