From 5f119af46a2cf5dd0a1f4488d4a521a9cdd67e7e Mon Sep 17 00:00:00 2001 From: Sandy Spicer Date: Fri, 14 Jun 2024 00:57:13 -0700 Subject: [PATCH] fix: fix celery queue type error (#22973) fix queues --- posthog/tasks/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/tasks/tasks.py b/posthog/tasks/tasks.py index 351f99878fcff..c370e70207454 100644 --- a/posthog/tasks/tasks.py +++ b/posthog/tasks/tasks.py @@ -508,7 +508,7 @@ def monitoring_check_clickhouse_schema_drift() -> None: check_clickhouse_schema_drift() -@shared_task(ignore_result=True, queue=CeleryQueue.LONG_RUNNING) +@shared_task(ignore_result=True, queue=CeleryQueue.LONG_RUNNING.value) def calculate_cohort() -> None: from posthog.tasks.calculate_cohort import calculate_cohorts @@ -631,7 +631,7 @@ def schedule_cache_updates_task() -> None: retry_backoff_max=30, max_retries=3, retry_jitter=True, - queue=CeleryQueue.LONG_RUNNING, + queue=CeleryQueue.LONG_RUNNING.value, ) def update_cache_task(caching_state_id: UUID) -> None: from posthog.caching.insight_cache import update_cache