Skip to content

Commit 4efb260

Browse files
committed
fix poller
1 parent a38b601 commit 4efb260

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

infra/dataform-service/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ DECLARE previousMonth_YYYYMM STRING DEFAULT SUBSTR(previousMonth, 1, 6);
1818
WITH crux AS (
1919
SELECT
2020
LOGICAL_AND(total_rows > 0) AS rows_available,
21-
LOGICAL_OR(TIMESTAMP_DIFF(CURRENT_TIMESTAMP(), last_modified_time, HOUR) < 8) AS recent_last_modified
21+
LOGICAL_OR(TIMESTAMP_DIFF(CURRENT_TIMESTAMP(), last_modified_time, HOUR) < 4) AS recent_last_modified
2222
FROM chrome-ux-report.materialized.INFORMATION_SCHEMA.PARTITIONS
2323
WHERE table_name IN ('device_summary', 'country_summary')
2424
AND partition_id IN (previousMonth, previousMonth_YYYYMM)
2525
), report AS (
2626
SELECT MAX(partition_id) = previousMonth AS report_exists
2727
FROM httparchive.reports.INFORMATION_SCHEMA.PARTITIONS
28-
WHERE table_name = 'tech_report_categories'
28+
WHERE table_name = 'tech_crux'
2929
AND partition_id != '__NULL__'
3030
)
3131

0 commit comments

Comments
 (0)