Skip to content

Commit be785e7

Browse files
committed
Widen lookback window to be twice the execution frequency
1 parent 454b892 commit be785e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

premerge/cronjobs/amend_pull_request_data_cronjob.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
namespace: operational-metrics
66
spec:
77
# Every 2 hours
8-
# Frequency must match that of amend_pull_request_data.py
8+
# Half of the lookback window in amend_pull_request_data.py
99
schedule: "0 */2 * * *"
1010
timeZone: "Etc/UTC"
1111
concurrencyPolicy: Forbid

premerge/ops-container/amend_pull_request_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from google.cloud import bigquery
77
import operational_metrics_lib
88

9-
# Must match the frequency of cronjobs/amend_pull_request_data_cronjob.yaml
10-
LOOKBACK_HOURS = 2
9+
# Twice the frequency of cronjobs/amend_pull_request_data_cronjob.yaml
10+
LOOKBACK_HOURS = 4
1111

1212
# BigQuery dataset and tables to write metrics to.
1313
OPERATIONAL_METRICS_DATASET = "operational_metrics"

0 commit comments

Comments
 (0)