Skip to content

Commit

Permalink
Merge pull request #316 from OpenMined/aziz/workers
Browse files Browse the repository at this point in the history
add workers
  • Loading branch information
abyesilyurt authored Nov 1, 2024
2 parents 10d90c7 + 86ca575 commit 3de9bb5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions syftbox/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,13 @@ def parse_args() -> argparse.Namespace:
help="Path to SSL certificate file for HTTPS",
)

parser.add_argument(
"--workers",
type=int,
default=1,
help="Number of worker processes to spawn",
)

args = parser.parse_args()
return args

Expand All @@ -368,6 +375,7 @@ def main() -> None:
"port": args.port,
"log_level": "debug" if args.debug else "info",
"reload": args.debug,
"workers": args.workers,
}

uvicorn_config["ssl_keyfile"] = args.ssl_keyfile if args.ssl_keyfile else None
Expand Down

0 comments on commit 3de9bb5

Please sign in to comment.