Skip to content

: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.

chore(session-replay): consolidate surfacing scoring sweep task queue (#64261)

Arno Hillene14b6c233ce0
diff --git a/posthog/management/commands/execute_temporal_workflow.py b/posthog/management/commands/execute_temporal_workflow.py
index 9d81e6790f74..acd146a49229 100644
--- a/posthog/management/commands/execute_temporal_workflow.py
+++ b/posthog/management/commands/execute_temporal_workflow.py
@@ -25,6 +25,7 @@ from posthog.temporal.session_replay.export_recording import EXPORT_RECORDING_WO
from posthog.temporal.session_replay.import_recording import IMPORT_RECORDING_WORKFLOWS
from posthog.temporal.session_replay.rasterize_recording import RASTERIZE_RECORDING_WORKFLOWS
from posthog.temporal.session_replay.summarization_sweep import SUMMARIZATION_SWEEP_WORKFLOWS
+from posthog.temporal.session_replay.surfacing_scoring_sweep import SURFACING_SCORING_SWEEP_WORKFLOWS
from posthog.temporal.tests.utils.workflow import WORKFLOWS as TEST_WORKFLOWS
from posthog.temporal.usage_report import WORKFLOWS as USAGE_REPORTS_WORKFLOWS
from posthog.temporal.weekly_digest import WORKFLOWS as WEEKLY_DIGEST_WORKFLOWS
@@ -155,6 +156,7 @@ class Command(BaseCommand):
+ RASTERIZE_RECORDING_WORKFLOWS
+ SUMMARIZATION_SWEEP_WORKFLOWS
+ WA_DIGEST_WORKFLOWS
+ + SURFACING_SCORING_SWEEP_WORKFLOWS
)
try:
workflow = next(workflow for workflow in WORKFLOWS if workflow.is_named(workflow_name))
diff --git a/posthog/management/commands/start_temporal_worker.py b/posthog/management/commands/start_temporal_worker.py
index 29294e5bb888..d44afdfd4dbc 100644
--- a/posthog/management/commands/start_temporal_worker.py
+++ b/posthog/management/commands/start_temporal_worker.py
@@ -327,7 +327,8 @@ _task_queue_specs = [
+ REPLAY_COUNT_METRICS_WORKFLOWS
+ SESSION_SUMMARY_WORKFLOWS
+ SESSION_SUMMARY_GROUP_WORKFLOWS
- + SUMMARIZATION_SWEEP_WORKFLOWS,
+ + SUMMARIZATION_SWEEP_WORKFLOWS
+ + SURFACING_SCORING_SWEEP_WORKFLOWS,
GEMINI_CLEANUP_SWEEP_ACTIVITIES
+ COUNT_PLAYLIST_ITEMS_ACTIVITIES
+ DELETE_RECORDINGS_ACTIVITIES
@@ -338,7 +339,8 @@ _task_queue_specs = [
+ REPLAY_COUNT_METRICS_ACTIVITIES
+ SESSION_SUMMARY_ACTIVITIES
+ SESSION_SUMMARY_GROUP_ACTIVITIES
- + SUMMARIZATION_SWEEP_ACTIVITIES,
+ + SUMMARIZATION_SWEEP_ACTIVITIES
+ + SURFACING_SCORING_SWEEP_ACTIVITIES,
),
(
settings.REPLAY_VISION_TASK_QUEUE,
@@ -395,11 +397,6 @@ _task_queue_specs = [
LOGS_ALERTING_WORKFLOWS,
LOGS_ALERTING_ACTIVITIES,
),
- (
- settings.SURFACING_SCORING_SWEEP_TASK_QUEUE,
- SURFACING_SCORING_SWEEP_WORKFLOWS,
- SURFACING_SCORING_SWEEP_ACTIVITIES,
- ),
]
# Note: When running locally, many task queues resolve to the same queue name.
diff --git a/posthog/management/commands/start_temporal_workflow.py b/posthog/management/commands/start_temporal_workflow.py
index cb2662eb2cf9..df8a9c64573a 100644
--- a/posthog/management/commands/start_temporal_workflow.py
+++ b/posthog/management/commands/start_temporal_workflow.py
@@ -25,6 +25,7 @@ from posthog.temporal.session_replay.import_recording import IMPORT_RECORDING_WO
from posthog.temporal.session_replay.rasterize_recording import RASTERIZE_RECORDING_WORKFLOWS
from posthog.temporal.session_replay.replay_count_metrics import REPLAY_COUNT_METRICS_WORKFLOWS
from posthog.temporal.session_replay.summarization_sweep import SUMMARIZATION_SWEEP_WORKFLOWS
+from posthog.temporal.session_replay.surfacing_scoring_sweep import SURFACING_SCORING_SWEEP_WORKFLOWS
from posthog.temporal.sync_person_distinct_ids import WORKFLOWS as SYNC_PERSON_DISTINCT_IDS_WORKFLOWS
from posthog.temporal.tests.utils.workflow import WORKFLOWS as TEST_WORKFLOWS
from posthog.temporal.usage_report import WORKFLOWS as USAGE_REPORTS_WORKFLOWS
@@ -158,6 +159,7 @@ class Command(BaseCommand):
+ EVENT_SCREENSHOTS_WORKFLOWS
+ HEALTH_CHECK_WORKFLOWS
+ WA_DIGEST_WORKFLOWS
+ + SURFACING_SCORING_SWEEP_WORKFLOWS
)
try:
workflow = next(workflow for workflow in WORKFLOWS if workflow.is_named(workflow_name))