:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(logs): pause the logs volume tick schedule (#116015)
posthog[bot]66e17cb5fefa
diff --git a/.github/workflows/container-images-cd.yml b/.github/workflows/container-images-cd.ymlindex 81e7917c6c65..a266c679bd7d 100644--- a/.github/workflows/container-images-cd.yml+++ b/.github/workflows/container-images-cd.yml@@ -702,15 +702,6 @@ jobs:- 'posthog/clickhouse/migrations/**'- pyproject.toml- bin/temporal-django-worker- logsVolumeTick:- - 'products/logs/backend/**'- - 'products/apm/backend/logic/grid.py'- - 'products/apm/backend/facade/constants.py'- - 'posthog/temporal/common/**'- - 'posthog/management/commands/start_temporal_worker.py'- - 'posthog/clickhouse/migrations/**'- - pyproject.toml- - bin/temporal-django-workerdataModeling:- 'posthog/hogql/**'- 'products/managed_warehouse/backend/**'@@ -1315,27 +1306,6 @@ jobs:"timestamp": "${{ github.event.head_commit.timestamp }}"}- - name: Trigger Logs Volume Tick Temporal Worker Cloud deployment- if: steps.check_temporal_worker_changes.outputs.logsVolumeTick == 'true'- uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1- with:- token: ${{ steps.deployer.outputs.token }}- repository: PostHog/charts- event-type: commit_state_update- client-payload: |- {- "values": {- "image": {- "sha": "${{ github.sha }}@${{ steps.image.outputs.digest }}"- }- },- "release": "temporal-worker-logs-volume-tick",- "commit": ${{ toJson(github.event.head_commit) }},- "repository": ${{ toJson(github.repository) }},- "labels": ${{ steps.labels.outputs.labels }},- "timestamp": "${{ github.event.head_commit.timestamp }}"- }-- name: Trigger Stamphog Temporal Worker Cloud deploymentif: steps.check_temporal_worker_changes.outputs.stamphog == 'true'uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1diff --git a/posthog/temporal/schedule.py b/posthog/temporal/schedule.pyindex 26872de79f49..ae4dbc6498eb 100644--- a/posthog/temporal/schedule.py+++ b/posthog/temporal/schedule.py@@ -119,7 +119,7 @@ from products.growth.backend.temporal.signup_enrichment.schedule import (create_harmonic_status_poll_schedule,create_icp_reenrichment_sweep_schedule,)-from products.logs.backend.facade.temporal import create_logs_volume_tick_schedule+from products.logs.backend.facade.temporal import disable_logs_volume_tick_schedulefrom products.managed_warehouse.backend.facade.temporal import DucklakeCompactionInputfrom products.metrics.backend.facade.temporal import create_suggested_dashboards_discovery_schedulefrom products.product_analytics.backend.facade.temporal import UpgradeQueriesWorkflowInputs@@ -973,7 +973,7 @@ schedules = [create_data_catalog_weekly_digest_schedule,create_alerts_platform_tick_schedule,create_logs_alert_check_schedule,- create_logs_volume_tick_schedule,+ disable_logs_volume_tick_schedule,create_schedule_due_alert_checks_schedule,create_run_investigation_safety_net_schedule,create_cleanup_alert_checks_schedule,diff --git a/products/logs/backend/facade/temporal.py b/products/logs/backend/facade/temporal.pyindex 2e75eccb88c2..5d7792a9d159 100644--- a/products/logs/backend/facade/temporal.py+++ b/products/logs/backend/facade/temporal.py@@ -33,7 +33,7 @@ from products.logs.backend.temporal.volume_tick.metrics import (LOGS_VOLUME_TICK_LATENCY_HISTOGRAM_BUCKETS,LOGS_VOLUME_TICK_LATENCY_HISTOGRAM_METRICS,)-from products.logs.backend.temporal.volume_tick.schedule import create_logs_volume_tick_schedule+from products.logs.backend.temporal.volume_tick.schedule import disable_logs_volume_tick_schedule__all__ = ["ACTIVITIES",@@ -52,7 +52,7 @@ __all__ = ["LOGS_VOLUME_TICK_LATENCY_HISTOGRAM_BUCKETS","LOGS_VOLUME_TICK_LATENCY_HISTOGRAM_METRICS","VolumeTickInput",- "create_logs_volume_tick_schedule",+ "disable_logs_volume_tick_schedule","LOGS_ALERTING_COUNT_HISTOGRAM_BUCKETS","LOGS_ALERTING_COUNT_HISTOGRAM_METRICS","LOGS_ALERTING_LATENCY_HISTOGRAM_BUCKETS",diff --git a/products/logs/backend/temporal/volume_tick/schedule.py b/products/logs/backend/temporal/volume_tick/schedule.pyindex e587e4dedcc0..2517909caa0a 100644--- a/products/logs/backend/temporal/volume_tick/schedule.py+++ b/products/logs/backend/temporal/volume_tick/schedule.py@@ -1,38 +1,13 @@"""Schedule registration for the logs volume tick workflow."""-from dataclasses import asdict+from temporalio.client import Client-from django.conf import settings+from posthog.temporal.common.schedule import a_pause_schedule, a_schedule_exists-from temporalio.client import (- Client,- Schedule,- ScheduleActionStartWorkflow,- ScheduleOverlapPolicy,- SchedulePolicy,- ScheduleSpec,-)+from products.logs.backend.temporal.volume_tick.constants import SCHEDULE_ID-from posthog.temporal.common.schedule import a_create_schedule, a_schedule_exists, a_update_schedule--from products.logs.backend.temporal.volume_tick.activities import VolumeTickInput-from products.logs.backend.temporal.volume_tick.constants import SCHEDULE_CRON, SCHEDULE_ID, WORKFLOW_NAME---async def create_logs_volume_tick_schedule(client: Client) -> None:- """Create or update the logs volume tick schedule."""- schedule = Schedule(- action=ScheduleActionStartWorkflow(- WORKFLOW_NAME,- asdict(VolumeTickInput()),- id=SCHEDULE_ID,- task_queue=settings.LOGS_VOLUME_TICK_TASK_QUEUE,- ),- spec=ScheduleSpec(cron_expressions=[SCHEDULE_CRON]),- policy=SchedulePolicy(overlap=ScheduleOverlapPolicy.SKIP),- )+async def disable_logs_volume_tick_schedule(client: Client) -> None:+ """Disabled: pause the logs volume tick schedule. The worker is no longer deployed, so ticks would never be picked up."""if await a_schedule_exists(client, SCHEDULE_ID):- await a_update_schedule(client, SCHEDULE_ID, schedule)- else:- await a_create_schedule(client, SCHEDULE_ID, schedule, trigger_immediately=False)+ await a_pause_schedule(client, SCHEDULE_ID, note="Disabled: temporal-worker-logs-volume-tick is not deployed")