Skip to content
This repository has been archived by the owner on Feb 2, 2025. It is now read-only.

Commit

Permalink
Improved main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
quintindunn committed Jun 29, 2024
1 parent b365431 commit 39c0723
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ def run_instance(url_man: URLManager):


def launch_instance(url_man: URLManager):
thread = Thread(target=run_instance, kwargs={"url_man": url_man}, daemon=False)
thread = Thread(target=run_instance, kwargs={"url_man": url_man}, daemon=True)
thread.start()


def dump_to_crawl(url_man: URLManager):
_to_crawl = url_man.to_crawl
_to_crawl = url_man.to_crawl.copy()

if os.path.isfile("./to_crawl.json"):
shutil.move("./to_crawl.json", "./to_crawl.json.old")
Expand All @@ -48,7 +48,7 @@ def load_data():


LIVE = True
INSTANCE_COUNT = 10
INSTANCE_COUNT = int(sys.argv[1]) if len(sys.argv) == 2 else 2
instances = []


Expand Down

0 comments on commit 39c0723

Please sign in to comment.