diff --git a/service.py b/service.py index 985916d..07d9fab 100755 --- a/service.py +++ b/service.py @@ -20,8 +20,8 @@ def stop_gracefully(signum, frame): async def checker(check: Callable | Coroutine, interval_secs: int, client: nio.AsyncClient, *args, **kwargs): - logging.info(f"Calling {check.__name__}") while True: + logging.info(f"Calling {check.__name__}") if isinstance(check, Callable): result = check(*args, **kwargs) if isinstance(result, Coroutine):