waiting 5 minutes

This commit is contained in:
Gaël Honorez
2024-01-02 10:10:12 +01:00
parent 16d72ffd32
commit a3885024db

View File

@@ -85,8 +85,7 @@ class SubStackTask:
LOG.info(f"Waiting for {sleep_seconds} seconds for next scan") LOG.info(f"Waiting for {sleep_seconds} seconds for next scan")
# Wait for some time before checking again # Wait for some time before checking again
# Here, we choose to wait for less than an hour (e.g., 59 minutes) to ensure we hit the hourly mark await asyncio.sleep(min(sleep_seconds, 5 * 60))
await asyncio.sleep(min(sleep_seconds, 59 * 60))
# Recalculate the remaining sleep time # Recalculate the remaining sleep time
now = datetime.datetime.now() now = datetime.datetime.now()