add random sleep log

This commit is contained in:
vvzvlad 2024-11-24 04:24:54 +03:00
parent 36ef2b48db
commit 586193e60f

View File

@ -139,7 +139,9 @@ if __name__ == "__main__":
ch.setFormatter(formatter) ch.setFormatter(formatter)
logger.addHandler(ch) logger.addHandler(ch)
time.sleep(random.randint(1, 600)) random_sleep = random.randint(1, 600)
logger.info(f"Sleeping for {random_sleep} seconds")
time.sleep(random_sleep)
GRIST_SERVER = "###GRIST_SERVER###" GRIST_SERVER = "###GRIST_SERVER###"
GRIST_DOC_ID = "###GRIST_DOC_ID###" GRIST_DOC_ID = "###GRIST_DOC_ID###"