From 34135073dfb3e1e1ab1bfcdfc4c5162368e502d9 Mon Sep 17 00:00:00 2001 From: PAN Lei Date: Wed, 15 May 2024 08:42:06 +0200 Subject: [PATCH] added start_validate_links.sh --- link_validator_executor.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/link_validator_executor.py b/link_validator_executor.py index 318f598..3dd0b71 100644 --- a/link_validator_executor.py +++ b/link_validator_executor.py @@ -1,5 +1,15 @@ -from workers.link_validator import validate_with_FR_ip +import time + +from workers.link_validator_with_provided_list import validate_all_links + +# if __name__ == '__main__': +# # link_list = MONGO_STORE_MANAGER.get_links_to_validate() +# validate_with_FR_ip(segment_position=2) if __name__ == '__main__': - # link_list = MONGO_STORE_MANAGER.get_links_to_validate() - validate_with_FR_ip(segment_position=2) + # generate test data + while True: + print("call validate_all_links()") + validate_all_links() + print("wait for 30 seconds") + time.sleep(30)