Skip to content

Commit

Permalink
fix: fix celery queue type error (#22973)
Browse files Browse the repository at this point in the history
fix queues
  • Loading branch information
aspicer authored Jun 14, 2024
1 parent 92ce1dd commit 5f119af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posthog/tasks/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5f119af

Please sign in to comment.