Added customizable poolig interval
This commit is contained in:
@@ -18,6 +18,7 @@ try:
|
|||||||
except:
|
except:
|
||||||
raise Exception("No IDRAC hosts variable")
|
raise Exception("No IDRAC hosts variable")
|
||||||
|
|
||||||
|
GET_INTERVAL: Final[int] = int(os.getenv("GET_INTERVAL", 60))
|
||||||
|
|
||||||
|
|
||||||
# Flightchecks-------------------------------------------
|
# Flightchecks-------------------------------------------
|
||||||
@@ -71,7 +72,7 @@ async def main():
|
|||||||
# for CiscoIP in CISCO_HOST_LIST:
|
# for CiscoIP in CISCO_HOST_LIST:
|
||||||
# tg.create_task(ciscoPoolRemote(CiscoIP, mainQueue))
|
# tg.create_task(ciscoPoolRemote(CiscoIP, mainQueue))
|
||||||
|
|
||||||
await asyncio.sleep(20)
|
await asyncio.sleep(GET_INTERVAL)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user