Skip to content

Commit

Permalink
Added a test debug statement to the main monai server module.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oren Livne committed Sep 29, 2023
1 parent c90f42c commit 292def2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions monailabel/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def args_start_server(self, parser):
parser.add_argument("--ssl_ca_certs", default=None, type=str, help="CA certificates file")
parser.add_argument("--workers", default=None, type=int, help="Number of worker processes")
parser.add_argument("--limit_concurrency", default=None, type=int, help="Max concurrent connections")
parser.add_argument("--reload", action="store_true", help="Whether to auto-reload uvicorn on source file changes")
parser.add_argument("--access_log", action="store_true", help="Enable access log")
parser.add_argument("--root_path", default="/", help="Application root path")
parser.add_argument("--log_level", default="info", help="Log level")
Expand Down Expand Up @@ -254,6 +255,7 @@ def action_start_server(self, args):
ssl_ca_certs=args.ssl_ca_certs,
workers=args.workers,
limit_concurrency=args.limit_concurrency,
reload=args.reload,
)

def start_server_validate_args(self, args):
Expand Down Expand Up @@ -353,4 +355,8 @@ def start_server_init_settings(self, args):


if __name__ == "__main__":
print("-" * 80)
print("Hello 4!")
print("Running monailabel.main")
print("-" * 80)
Main().run()

0 comments on commit 292def2

Please sign in to comment.