From f468a789e37d3582016c362d33ad86fe6eac324b Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Wed, 11 Mar 2026 15:40:04 +0100 Subject: [PATCH] fix: make polling interval configurable --- client/dispatch-query.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/dispatch-query.py b/client/dispatch-query.py index 03f4562..17a39e8 100755 --- a/client/dispatch-query.py +++ b/client/dispatch-query.py @@ -174,6 +174,8 @@ if __name__ == "__main__": smtp_pass = args.smtp_pass or os.environ.get("SMTP_PASS") smtp_port = args.smtp_port or os.environ.get("SMTP_PORT") + polling_interval = int(os.environ.get("POLLING_INTERVAL_SECONDS") or 5) + first_run = True while args.loop or first_run: @@ -228,7 +230,7 @@ if __name__ == "__main__": # wait a moment # if args.loop: - time.sleep(5) + time.sleep(polling_interval) # handle non-loop runs # first_run = False