fix(worker_health): increase timeout duration for health check from 5 to 20 seconds

This commit is contained in:
sharath 2025-06-30 17:52:02 +00:00
parent 9871841baa
commit 7653f8b586
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ async def main():
await retry(lambda: redis.initialize_async()) await retry(lambda: redis.initialize_async())
key = uuid.uuid4().hex key = uuid.uuid4().hex
run_agent_background.check_health.send(key) run_agent_background.check_health.send(key)
timeout = 5 # seconds timeout = 20 # seconds
elapsed = 0 elapsed = 0
while elapsed < timeout: while elapsed < timeout:
if await redis.get(key) == "healthy": if await redis.get(key) == "healthy":