diff --git a/.github/workflows/docker-img.yml b/.github/workflows/docker-img.yml index 27d251d..d38cf80 100644 --- a/.github/workflows/docker-img.yml +++ b/.github/workflows/docker-img.yml @@ -202,14 +202,13 @@ jobs: strategy: fail-fast: false matrix: - queue: ["core", "features", "compounds"] - resource: ["low"] - exclude: - - queue: "compounds" - resource: "low" include: + - queue: "core" + resource: 'low' - queue: "compounds" resource: 'high' + - queue: "features" + resource: 'high' if: ${{ github.event_name == 'release' && contains(github.ref, 'rc') }} uses: ./.github/workflows/deploy-worker-helm-v4.yml diff --git a/api/server/api.py b/api/server/api.py index bb8d1f8..59a1f8e 100644 --- a/api/server/api.py +++ b/api/server/api.py @@ -67,18 +67,6 @@ expose_headers=[siibra_version_header] ) -@siibra_api.get("/metrics", include_in_schema=False) -def get_metrics(): - """Get prometheus metrics""" - return prom_metrics_resp() - - -@siibra_api.get("/ready", include_in_schema=False) -def get_ready(): - """Ready probe - - TODO: implement me""" - return "ready" _code_meta = None @siibra_api.get("/about", include_in_schema=False) @@ -391,6 +379,20 @@ async def exception_other(request: Request, exc: Exception): templates = Jinja2Templates(directory="templates/") siibra_api.mount("/static", StaticFiles(directory="static"), name="static") +@siibra_api.get("/metrics", include_in_schema=False) +def get_metrics(): + """Get prometheus metrics""" + return prom_metrics_resp() + + +@siibra_api.get("/ready", include_in_schema=False) +def get_ready(): + """Ready probe + + TODO: implement me""" + return "ready" + + # TODO lifespan not working properly. Fix and use lifespan in future @siibra_api.on_event("shutdown") def shutdown():