Skip to content

Commit 60599b3

Browse files
committed
fix: ready/metrics
fix: resources
1 parent 515468b commit 60599b3

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

.github/workflows/docker-img.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,13 @@ jobs:
202202
strategy:
203203
fail-fast: false
204204
matrix:
205-
queue: ["core", "features", "compounds"]
206-
resource: ["low"]
207-
exclude:
208-
- queue: "compounds"
209-
resource: "low"
210205
include:
206+
- queue: "core"
207+
resource: 'low'
211208
- queue: "compounds"
212209
resource: 'high'
210+
- queue: "features"
211+
resource: 'high'
213212

214213
if: ${{ github.event_name == 'release' && contains(github.ref, 'rc') }}
215214
uses: ./.github/workflows/deploy-worker-helm-v4.yml

api/server/api.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,6 @@
6767
expose_headers=[siibra_version_header]
6868
)
6969

70-
@siibra_api.get("/metrics", include_in_schema=False)
71-
def get_metrics():
72-
"""Get prometheus metrics"""
73-
return prom_metrics_resp()
74-
75-
76-
@siibra_api.get("/ready", include_in_schema=False)
77-
def get_ready():
78-
"""Ready probe
79-
80-
TODO: implement me"""
81-
return "ready"
8270

8371
_code_meta = None
8472
@siibra_api.get("/about", include_in_schema=False)
@@ -391,6 +379,20 @@ async def exception_other(request: Request, exc: Exception):
391379
templates = Jinja2Templates(directory="templates/")
392380
siibra_api.mount("/static", StaticFiles(directory="static"), name="static")
393381

382+
@siibra_api.get("/metrics", include_in_schema=False)
383+
def get_metrics():
384+
"""Get prometheus metrics"""
385+
return prom_metrics_resp()
386+
387+
388+
@siibra_api.get("/ready", include_in_schema=False)
389+
def get_ready():
390+
"""Ready probe
391+
392+
TODO: implement me"""
393+
return "ready"
394+
395+
394396
# TODO lifespan not working properly. Fix and use lifespan in future
395397
@siibra_api.on_event("shutdown")
396398
def shutdown():

0 commit comments

Comments
 (0)