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(signals): backfill data warehouse sources over 24h on first sync (#68149)

Joshua Snyder66bc5a96e5fd
diff --git a/products/signals/backend/emission/github_issues.py b/products/signals/backend/emission/github_issues.py
index 144b9560811b..c07686d00ecc 100644
--- a/products/signals/backend/emission/github_issues.py
+++ b/products/signals/backend/emission/github_issues.py
@@ -118,7 +118,7 @@ GITHUB_ISSUES_CONFIG = SignalSourceTableConfig(
fields=REQUIRED_FIELDS + EXTRA_FIELDS,
where_clause=f"state NOT IN ({', '.join(repr(s) for s in GITHUB_IGNORED_STATES)})",
max_records=1000,
- first_sync_lookback_days=90,
+ first_sync_lookback_days=1, # 24 hours
actionability_prompt=GITHUB_ACTIONABILITY_PROMPT,
summarization_prompt=GITHUB_SUMMARIZATION_PROMPT,
description_summarization_threshold_chars=2000,
diff --git a/products/signals/backend/emission/linear_issues.py b/products/signals/backend/emission/linear_issues.py
index 2e86ba3bf858..5e6a89cbbb3a 100644
--- a/products/signals/backend/emission/linear_issues.py
+++ b/products/signals/backend/emission/linear_issues.py
@@ -140,7 +140,7 @@ LINEAR_ISSUES_CONFIG = SignalSourceTableConfig(
fields=REQUIRED_FIELDS + EXTRA_FIELDS,
where_clause=f"JSONExtractString(state, 'type') NOT IN ({', '.join(repr(s) for s in LINEAR_IGNORED_STATE_TYPES)})",
max_records=1000,
- first_sync_lookback_days=90,
+ first_sync_lookback_days=1, # 24 hours
actionability_prompt=LINEAR_ACTIONABILITY_PROMPT,
summarization_prompt=LINEAR_SUMMARIZATION_PROMPT,
description_summarization_threshold_chars=2000,
diff --git a/products/signals/backend/emission/pganalyze_issues.py b/products/signals/backend/emission/pganalyze_issues.py
index 05676e899f32..49a6186a6b55 100644
--- a/products/signals/backend/emission/pganalyze_issues.py
+++ b/products/signals/backend/emission/pganalyze_issues.py
@@ -134,7 +134,7 @@ PGANALYZE_ISSUES_CONFIG = SignalSourceTableConfig(
partition_field_is_datetime_string=True,
fields=REQUIRED_FIELDS + EXTRA_FIELDS,
max_records=200,
- first_sync_lookback_days=30,
+ first_sync_lookback_days=1, # 24 hours
actionability_prompt=PGANALYZE_ACTIONABILITY_PROMPT,
summarization_prompt=PGANALYZE_SUMMARIZATION_PROMPT,
description_summarization_threshold_chars=2000,
diff --git a/products/signals/backend/emission/zendesk_tickets.py b/products/signals/backend/emission/zendesk_tickets.py
index 75c17e915799..40a38236dcf8 100644
--- a/products/signals/backend/emission/zendesk_tickets.py
+++ b/products/signals/backend/emission/zendesk_tickets.py
@@ -130,7 +130,7 @@ ZENDESK_TICKETS_CONFIG = SignalSourceTableConfig(
fields=REQUIRED_FIELDS + EXTRA_FIELDS,
where_clause=f"status NOT IN ({', '.join(repr(s) for s in ZENDESK_IGNORED_STATUSES)})",
max_records=100,
- first_sync_lookback_days=30,
+ first_sync_lookback_days=1, # 24 hours
actionability_prompt=ZENDESK_ACTIONABILITY_PROMPT,
summarization_prompt=ZENDESK_SUMMARIZATION_PROMPT,
description_summarization_threshold_chars=2000,