From 30c590b596dc022c55c28bc9e53276e0b20e2fbd Mon Sep 17 00:00:00 2001 From: akrherz Date: Tue, 13 Aug 2024 14:33:30 -0500 Subject: [PATCH] fix: backup reprocessing one day to align IEMRE --- scripts/RT/reprocess.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/RT/reprocess.py b/scripts/RT/reprocess.py index 6e2c59cb..0f4fc22c 100644 --- a/scripts/RT/reprocess.py +++ b/scripts/RT/reprocess.py @@ -1,5 +1,8 @@ """Daily Reprocessing. +Careful of the timing here. IEMRE reruns -10 days at Noon, so we should +reprocess that date here too. + Run from systemd dep-reprocess.timer """ @@ -10,15 +13,15 @@ def main(): """Go Main Go.""" - d9 = datetime.datetime.now() - datetime.timedelta(days=9) d10 = datetime.datetime.now() - datetime.timedelta(days=10) + d11 = datetime.datetime.now() - datetime.timedelta(days=11) # Run env2database from 10 days ago with subprocess.Popen( [ "python", "env2database.py", "--date", - d10.strftime("%Y-%m-%d"), + d11.strftime("%Y-%m-%d"), "-s", "0", ], @@ -37,7 +40,7 @@ def main(): "python", "proctor_tile_edit.py", "--scenario=0", - f"--date={d9:%Y-%m-%d}", + f"--date={d10:%Y-%m-%d}", ], stdout=subprocess.PIPE, stderr=subprocess.PIPE,