: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
fix(experiments): re-register canary on the general-purpose queue (#68339)
Rodrigo Iloro2658fe5d6356
diff --git a/posthog/management/commands/start_temporal_worker.py b/posthog/management/commands/start_temporal_worker.pyindex f7661914ecd4..eb73ec242336 100644--- a/posthog/management/commands/start_temporal_worker.py+++ b/posthog/management/commands/start_temporal_worker.py@@ -184,6 +184,8 @@ from products.error_tracking.backend.facade.temporal import ()from products.experiments.backend.temporal import (ACTIVITIES as EXPERIMENTS_RECALCULATION_ACTIVITIES,+ EXPERIMENT_CANARY_ACTIVITIES,+ EXPERIMENT_CANARY_WORKFLOWS,WORKFLOWS as EXPERIMENTS_RECALCULATION_WORKFLOWS,)from products.exports.backend.temporal.subscriptions import (@@ -268,6 +270,7 @@ _task_queue_specs = [+ DLQ_REPLAY_WORKFLOWS+ SYNC_PERSON_DISTINCT_IDS_WORKFLOWS+ EXPERIMENTS_WORKFLOWS+ + EXPERIMENT_CANARY_WORKFLOWS+ CLEANUP_PROPDEFS_WORKFLOWS+ BACKFILL_GROUP_TYPE_CREATED_AT_WORKFLOWS+ INGESTION_ACCEPTANCE_TEST_WORKFLOWS@@ -284,6 +287,7 @@ _task_queue_specs = [+ DLQ_REPLAY_ACTIVITIES+ SYNC_PERSON_DISTINCT_IDS_ACTIVITIES+ EXPERIMENTS_ACTIVITIES+ + EXPERIMENT_CANARY_ACTIVITIES+ CLEANUP_PROPDEFS_ACTIVITIES+ BACKFILL_GROUP_TYPE_CREATED_AT_ACTIVITIES+ INGESTION_ACCEPTANCE_TEST_ACTIVITIESdiff --git a/products/experiments/backend/temporal/__init__.py b/products/experiments/backend/temporal/__init__.pyindex 45fe939a4fb4..83160f053f88 100644--- a/products/experiments/backend/temporal/__init__.py+++ b/products/experiments/backend/temporal/__init__.py@@ -11,21 +11,30 @@ from products.experiments.backend.temporal.recalculation_activities import ()from products.experiments.backend.temporal.recalculation_workflow import ExperimentMetricsRecalculationWorkflow+EXPERIMENT_CANARY_WORKFLOWS = [+ ExperimentPrecomputeCanaryWorkflow,+]+EXPERIMENT_CANARY_ACTIVITIES = [+ sample_experiment_canary_targets,+ run_experiment_metric_canary,+ report_experiment_canary_results,+]+WORKFLOWS = [ExperimentMetricsRecalculationWorkflow,- ExperimentPrecomputeCanaryWorkflow,+ *EXPERIMENT_CANARY_WORKFLOWS,]ACTIVITIES = [discover_experiment_metrics,calculate_experiment_metric_for_recalculation,update_recalculation_progress,- sample_experiment_canary_targets,- run_experiment_metric_canary,- report_experiment_canary_results,+ *EXPERIMENT_CANARY_ACTIVITIES,]__all__ = ["ACTIVITIES",+ "EXPERIMENT_CANARY_ACTIVITIES",+ "EXPERIMENT_CANARY_WORKFLOWS","WORKFLOWS","ExperimentMetricsRecalculationWorkflow","ExperimentPrecomputeCanaryWorkflow",diff --git a/tach.toml b/tach.tomlindex ada41209e211..31140dec2cec 100644--- a/tach.toml+++ b/tach.toml@@ -763,6 +763,8 @@ from = [[[interfaces]]expose = ["backend\\.temporal\\.ACTIVITIES",+ "backend\\.temporal\\.EXPERIMENT_CANARY_ACTIVITIES",+ "backend\\.temporal\\.EXPERIMENT_CANARY_WORKFLOWS","backend\\.temporal\\.WORKFLOWS","backend\\.temporal\\.recalculation_metrics.*","backend\\.temporal\\.schedule\\.create_experiment_precompute_canary_schedule",