diff --git a/app/main.py b/app/main.py index daa54f9..3a37265 100644 --- a/app/main.py +++ b/app/main.py @@ -12,8 +12,9 @@ @app.get("/ping") def test(): - if int(time.time()) % 3 == 0: - raise Exception("unknown internal error") + # Removed deliberate error to prevent 500 internal server errors and alert firing + # if int(time.time()) % 3 == 0: + # raise Exception("unknown internal error") return {"pong": True} @@ -30,4 +31,4 @@ def read_root(): return { "Commit": os.environ.get('GIT_COMMIT'), "From": os.environ.get('ENV', 'DEFAULT_ENV'), - } \ No newline at end of file + }