Skip to content

Commit

Permalink
Better error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jakep-allenai committed Dec 2, 2024
1 parent 35502bc commit fe04db8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pdelfin/beakerpipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,10 @@ async def sglang_server_host(args, semaphore):
logger.warning("SGLang server task ended")
retry += 1

logger.error(f"Ended up restarting the sglang server more than {retry} times, cancelling")
sys.exit(1)

if retry >= MAX_RETRIES:
logger.error(f"Ended up restarting the sglang server more than {retry} times, cancelling")
sys.exit(1)


async def sglang_server_ready():
max_attempts = 300
Expand Down

0 comments on commit fe04db8

Please sign in to comment.