Skip to content

Commit

Permalink
only update the completion file at noon
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Oct 31, 2023
1 parent c989c61 commit 35a5a90
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions py/desitransfer/daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,9 @@ def main():
if s != 0:
print(f"ERROR: rsync problem detected for {d.source} -> {d.destination}!")
status |= s
if options.debug:
print(f"DEBUG: daily {options.timeframe} transfer complete at {stamp()}. Writing {options.completion}.")
with open(options.completion, 'w') as c:
c.write(stamp() + "\n")
if options.timeframe == 'noon':
if options.debug:
print(f"DEBUG: daily {options.timeframe} transfer complete at {stamp()}. Writing {options.completion}.")
with open(options.completion, 'w') as c:
c.write(stamp() + "\n")
return status

0 comments on commit 35a5a90

Please sign in to comment.