Skip to content

Commit

Permalink
a shot at more graceful timeout recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
pevogam committed Jan 31, 2025
1 parent 41b4bba commit 227e8c2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions avocado_i2n/cartgraph/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2123,10 +2123,9 @@ async def traverse_object_trees(
# despite ergodicity we ended at the same node (no other work)
if next in occupied_at:
if occupied_wait > test_duration:
raise RuntimeError(
f"Worker {worker.id} spent {occupied_wait:.2f} seconds waiting for "
f"occupied nodes of maximum test duration {test_duration:.2f}: "
+ ", ".join(n.id for n in occupied_at)
# allow reentrancy as best shot at recovering from an otherwise fatal error
next.params["max_concurrent_tries"] = (
self.params.get_numeric("max_concurrent_tries", 0) + 1
)
occupied_wait += occupied_timeout
else:
Expand Down

0 comments on commit 227e8c2

Please sign in to comment.