From 6595587ae732fc151b84969f5293f652dcc6cd8a Mon Sep 17 00:00:00 2001 From: Vishnu Sanal T <50027064+VishnuSanal@users.noreply.github.com> Date: Thu, 24 Oct 2024 00:46:39 +0530 Subject: [PATCH] chore: update --fast defaults (#989) * chore: update --fast defaults * Update robyn/argument_parser.py Co-authored-by: Sanskar Jethi <29942790+sansyrox@users.noreply.github.com> --------- Co-authored-by: Sanskar Jethi <29942790+sansyrox@users.noreply.github.com> --- robyn/argument_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robyn/argument_parser.py b/robyn/argument_parser.py index 4112f36bc..88c93ae7e 100644 --- a/robyn/argument_parser.py +++ b/robyn/argument_parser.py @@ -103,8 +103,8 @@ def __init__(self) -> None: if self.fast: # doing this here before every other check # so that processes, workers and log_level can be overridden - self.processes = self.processes or os.cpu_count() or 1 - self.workers = self.workers or ((os.cpu_count() * 2) + 1) or 1 + self.processes = self.processes or ((os.cpu_count() * 2) + 1) or 1 + self.workers = self.workers or 2 self.log_level = self.log_level or "WARNING" self.processes = self.processes or 1