Improved output

This commit is contained in:
nanos 2023-03-21 07:55:52 +00:00
parent 62989f4041
commit 27bfcc3841

View file

@ -682,6 +682,9 @@ class OrderedSet:
if __name__ == "__main__":
start = datetime.now()
log(f"Beginning script")
LOCK_FILE = 'artifacts/lock.lock'
@ -741,6 +744,9 @@ if __name__ == "__main__":
os.remove(LOCK_FILE)
log(f"Processing finished in {datetime.now() - start}.")
except Exception as ex:
os.remove(LOCK_FILE)
log(f"Job failed after {datetime.now() - start}.")
raise