From e06eea68cd4d79c062cacfabef10ee8080faeb55 Mon Sep 17 00:00:00 2001 From: YuruC3 Date: Sat, 7 Mar 2026 22:02:37 +0100 Subject: [PATCH] Added customizable poolig interval --- cont/mainRE.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cont/mainRE.py b/cont/mainRE.py index b4b63a2..0b2181d 100644 --- a/cont/mainRE.py +++ b/cont/mainRE.py @@ -18,6 +18,7 @@ try: except: raise Exception("No IDRAC hosts variable") +GET_INTERVAL: Final[int] = int(os.getenv("GET_INTERVAL", 60)) # Flightchecks------------------------------------------- @@ -71,7 +72,7 @@ async def main(): # for CiscoIP in CISCO_HOST_LIST: # tg.create_task(ciscoPoolRemote(CiscoIP, mainQueue)) - await asyncio.sleep(20) + await asyncio.sleep(GET_INTERVAL)