Skip to content

Commit

Permalink
Add try count
Browse files Browse the repository at this point in the history
  • Loading branch information
emnigma committed Aug 7, 2023
1 parent 622b374 commit c7f127d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion VSharp.ML.AIAgent/launch_servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ async def dequeue_instance(request):
print(f"issued {server_info}")
return web.json_response(server_info.to_json())
except Empty:
print(f"{os.getpid()} tried to dequeue an empty queue. Waiting...")
print(
f"{os.getpid()} tried to dequeue an empty queue. Retrying {retry_count}'s time..."
)
retry_count -= 1


Expand Down

0 comments on commit c7f127d

Please sign in to comment.