Skip to content

Commit

Permalink
exit status
Browse files Browse the repository at this point in the history
  • Loading branch information
nmr2701 committed May 29, 2024
1 parent 360ab82 commit 55c4ea2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/productionworkflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,3 @@ jobs:
id: deployment
run: |
python ./se_ml_production/ML_backend_GKE/ML_GKE/ML_Service_GKE/main.py
- name: Check deployment status
if: ${{ steps.deployment.outcome == 'success' }}
run: exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from ML_API import ml_router
from global_state import global_instance
from bootstrappers import bootstrap_pipeline, validate_bootstrap, bootstrap_MongoDB_Prod
import sys

app.include_router(ml_router)

Expand Down Expand Up @@ -35,6 +36,8 @@ async def startup_event():
print(f"[Error!] FATAL ERROR! | {e}")
raise

sys.exit(0)

if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000) # This bootstraps the FastAPI
Expand Down

0 comments on commit 55c4ea2

Please sign in to comment.