Skip to content

Commit

Permalink
increased timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
blublinsky committed Sep 24, 2024
1 parent 050be3c commit 423d976
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,12 @@ def operator() -> ActorHandle:

cls_name = clazz.__class__.__name__.replace('ActorClass(', '').replace(')','')
actors = [operator() for _ in range(n_actors)]
time.sleep(5)
alive = list_actors(filters=[("class_name", "=", cls_name), ("state", "=", "ALIVE")])
if len(actors) == len(alive):
return actors
for i in range(10):
time.sleep(2)
alive = list_actors(filters=[("class_name", "=", cls_name), ("state", "=", "ALIVE")])
if len(actors) == len(alive):
return actors
# failed - raise an exception
print(f"created {actors}, alive {alive}")
raise UnrecoverableException(f"out of {len(actors)} created classes only {len(alive)} alive")

Expand Down

0 comments on commit 423d976

Please sign in to comment.