Skip to content

Commit

Permalink
fix: add healthcheck to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
alarv committed Jul 28, 2024
1 parent 29e7f51 commit bc0cc5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Publish Docker image
on:
push:
branches: [
"release/sk-learn0.20",
"release/sk-learn0.22",
"release/sk-learn0.23",
"release/sk-learn0.24",
"release/sk-learn1",
"release/sk-learn0.20*",
"release/sk-learn0.22*",
"release/sk-learn0.23*",
"release/sk-learn0.24*",
"release/sk-learn1*",
]

jobs:
Expand Down
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
allow_headers=["*"]
)

@app.get('/')
def health_check():
return {'status': 'UP'}

@app.post("/predict/sklearn/")
# def sklearn_model(req: PredictionRequest):
Expand Down

0 comments on commit bc0cc5f

Please sign in to comment.