Skip to content

Commit

Permalink
Keep behavior consistent across platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Marti2203 committed Dec 9, 2024
1 parent 8c4b839 commit d228613
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

import json
import logging
from multiprocessing import set_start_method
import platform
import shutil
from argparse import ArgumentParser
from collections.abc import Mapping, Sequence
Expand Down Expand Up @@ -646,6 +648,9 @@ def dump_cost(


if __name__ == "__main__":
if platform.system() == "Darwin":
#Macos specific requirement for Multi-Processing
set_start_method('fork',force=True)
logging.getLogger("httpx").setLevel(logging.WARNING)
logger.remove()
main()

0 comments on commit d228613

Please sign in to comment.