Skip to content

Commit

Permalink
plan compute process pool executor to thread pool executor
Browse files Browse the repository at this point in the history
(cherry picked from commit bbe34af)
  • Loading branch information
Belissimo-T committed Nov 8, 2024
1 parent 6e6a931 commit ec267cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/load_plans.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, school_number: str, plan_downloader: PlanDownloader, plan_pro
self.school_number = school_number
self.plan_downloader = plan_downloader
self.plan_processor = plan_processor
self._plan_compute_executor = concurrent.futures.ProcessPoolExecutor(max_workers=1)
self._plan_compute_executor = concurrent.futures.ThreadPoolExecutor(max_workers=1)
self._plan_compute_awaiter_executor = concurrent.futures.ThreadPoolExecutor(max_workers=2)

async def check_infinite(self, interval: int = 60, *, once: bool = False, ignore_exceptions: bool = False):
Expand Down

0 comments on commit ec267cd

Please sign in to comment.