Skip to content

Commit

Permalink
Fix default value for serviceReady
Browse files Browse the repository at this point in the history
  • Loading branch information
donnybeelo committed Aug 19, 2024
1 parent 12d8015 commit b7bf811
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions softpack_core/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


import urllib.parse
from multiprocessing import Event
from multiprocessing.synchronize import Event as EventClass
from pathlib import Path

Expand Down Expand Up @@ -52,7 +53,7 @@ def run(
help="Create and use this branch of Artefacts repo.",
),
] = 'main',
serviceReady: EventClass = None,
serviceReady: EventClass = Event(),
) -> None:
"""Start the SoftPack Core REST API service.
Expand All @@ -70,8 +71,7 @@ def run(

artifacts.clone_repo(branch=branch)

if serviceReady is not None:
serviceReady.set()
serviceReady.set()
uvicorn.run(
"softpack_core.app:app.router",
host=app.settings.server.host,
Expand Down

0 comments on commit b7bf811

Please sign in to comment.