From 27bfcc38414f889baf904f9d8f988d17411ed615 Mon Sep 17 00:00:00 2001 From: nanos Date: Tue, 21 Mar 2023 07:55:52 +0000 Subject: [PATCH] Improved output --- find_posts.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/find_posts.py b/find_posts.py index de3588a..f87b498 100644 --- a/find_posts.py +++ b/find_posts.py @@ -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