Skip to content

Commit

Permalink
fix: health route fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedantsahai18 committed Dec 28, 2024
1 parent 2fb9970 commit 27e3a08
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions agents-api/agents_api/routers/healthz/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .check_health import check_health
from .router import router
5 changes: 5 additions & 0 deletions agents-api/agents_api/routers/healthz/router.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from fastapi import APIRouter

router: APIRouter = APIRouter()


3 changes: 2 additions & 1 deletion agents-api/agents_api/routers/jobs/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from .routers import router # noqa: F401
# noqa: F401
from .routers import router
2 changes: 2 additions & 0 deletions agents-api/agents_api/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
sessions,
tasks,
users,
healthz,
)

if not sentry_dsn:
Expand Down Expand Up @@ -151,6 +152,7 @@ def register_exceptions(app: FastAPI) -> None:
app.include_router(docs.router, dependencies=[Depends(get_api_key)])
app.include_router(tasks.router, dependencies=[Depends(get_api_key)])
app.include_router(internal.router)
app.include_router(healthz.router)

# TODO: CORS should be enabled only for JWT auth
#
Expand Down

0 comments on commit 27e3a08

Please sign in to comment.