Skip to content

Commit

Permalink
fix: update heartbeat
Browse files Browse the repository at this point in the history
  • Loading branch information
dvilelaf committed Jun 19, 2024
1 parent 8394a9f commit 8ab47f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operate/services/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -930,15 +930,15 @@ async def healthcheck_job(
failed_health_checks += 1
else:
failed_health_checks = 0
if failed_health_checks >= 5:
if failed_health_checks >= 4:
self.stop_service_locally(hash=hash)
self.deploy_service_locally(hash=hash)

except Exception: # pylint: disable=broad-except
logging.info(
f"Error occured while checking the service health\n{traceback.format_exc()}"
)
await asyncio.sleep(60)
await asyncio.sleep(30)

def deploy_service_locally(self, hash: str, force: bool = True) -> Deployment:
"""
Expand Down

0 comments on commit 8ab47f1

Please sign in to comment.