diff --git a/.github/workflows/productionworkflow.yaml b/.github/workflows/productionworkflow.yaml index 0e410ec..8a0897d 100644 --- a/.github/workflows/productionworkflow.yaml +++ b/.github/workflows/productionworkflow.yaml @@ -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 \ No newline at end of file diff --git a/se_ml_production/ML_backend_GKE/ML_Cloud_Run/Cloud_Run/main.py b/se_ml_production/ML_backend_GKE/ML_Cloud_Run/Cloud_Run/main.py index 5381927..9ff8cba 100644 --- a/se_ml_production/ML_backend_GKE/ML_Cloud_Run/Cloud_Run/main.py +++ b/se_ml_production/ML_backend_GKE/ML_Cloud_Run/Cloud_Run/main.py @@ -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) @@ -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