Add sleep between BunkerNet registering and ping to the API to avoid being rate limited

This commit is contained in:
Théophile Diot 2023-03-29 10:18:48 +02:00
parent 283828e8f7
commit 4f334a577a
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
1 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,8 @@ try:
bunkernet_id = Path("/var/cache/bunkerweb/bunkernet/instance.id").read_text()
logger.info(f"Already registered on BunkerNet API with instance id {get_id()}")
sleep(1)
# Ping
logger.info("Checking connectivity with BunkerNet API ...")
bunkernet_ping = False