From 324d180c5e209eb92d9d18236185e994e583cd3b Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Tue, 10 Nov 2020 20:50:05 +1100 Subject: [PATCH] docker-compose: Default to only backfilling things from this year By setting a 6-month limit --- docker-compose.jsonnet | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docker-compose.jsonnet b/docker-compose.jsonnet index 1840199..ac4e435 100644 --- a/docker-compose.jsonnet +++ b/docker-compose.jsonnet @@ -133,6 +133,10 @@ // The timestamp corresponding to 00:00 in bustime bustime_start:: "1970-01-01T00:00:00Z", + // Max hours ago to backfill, ie. do not backfill for times before this many hours ago. + // Set to null to disable. + backfill_max_hours_ago:: 24 * 30 * 6, // approx 6 months + // The spreadsheet id and worksheet names for sheet sync to act on sheet_id:: "your_id_here", worksheets:: ["Tech Test & Preshow"] + ["Day %d" % n for n in std.range(1, 7)], @@ -223,7 +227,9 @@ "--backdoor-port", std.toString($.backdoor_port), "--node-database", $.db_connect, "--localhost", $.localhost, - ], + ] + (if $.backfill_max_hours_ago == null then [] else [ + "--start", std.toString($.backfill_max_hours_ago), + ]), // Mount the segments directory at /mnt volumes: ["%s:/mnt" % $.segments_path], // If the application crashes, restart it.