Skip to content

Commit

Permalink
Merge pull request dailyerosion#263 from akrherz/240812
Browse files Browse the repository at this point in the history
fix: backup reprocessing one day to align IEMRE
  • Loading branch information
akrherz authored Aug 13, 2024
2 parents 3b51991 + 30c590b commit 404f615
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/RT/reprocess.py
Original file line number Diff line number Diff line change
@@ -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
"""

Expand All @@ -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",
],
Expand All @@ -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,
Expand Down

0 comments on commit 404f615

Please sign in to comment.