Comment out random sleep functionality in checker.py to simplify execution flow. This change removes unnecessary delays, enhancing the responsiveness of the checker process while maintaining existing logging and error handling mechanisms.
This commit is contained in:
@ -149,9 +149,9 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
logger.info("Checker started")
|
logger.info("Checker started")
|
||||||
self_update(logger)
|
self_update(logger)
|
||||||
random_sleep = random.randint(1, 60)
|
#random_sleep = random.randint(1, 60)
|
||||||
logger.info(f"Sleeping for {random_sleep} seconds")
|
#logger.info(f"Sleeping for {random_sleep} seconds")
|
||||||
time.sleep(random_sleep)
|
#time.sleep(random_sleep)
|
||||||
|
|
||||||
grist_data = {}
|
grist_data = {}
|
||||||
with open('/root/node/grist.json', 'r', encoding='utf-8') as f:
|
with open('/root/node/grist.json', 'r', encoding='utf-8') as f:
|
||||||
|
Reference in New Issue
Block a user