waiting 5 minutes
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user