From 51f75640c08f1b2f02c77724a58f8dde32746c1b Mon Sep 17 00:00:00 2001 From: Jacob Lanter Date: Sat, 18 Apr 2026 12:54:58 -0400 Subject: [PATCH] Add exit logic to ETL to ensure container stops after all pages are finished Signed-off-by: Jacob Lanter --- src/Application.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Application.py b/src/Application.py index 62b0412..cebc79a 100644 --- a/src/Application.py +++ b/src/Application.py @@ -49,6 +49,11 @@ def init(): # Logs when we reached last page if verkada.is_eor_page(): logging.info("Finished all pages") + break + + logging.info("ETL job completed. Exiting container") + exit(0) else: logging.error("ElasticSearch connection timed out") + exit(1)