Skip to content

Commit d8fef1a

Browse files
committed
suspect reentrancy for the asyncio hang
1 parent a252cb9 commit d8fef1a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

avocado_i2n/cartgraph/graph.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2134,6 +2134,10 @@ async def traverse_object_trees(
21342134
+ ", ".join(n.id for n in occupied_at)
21352135
)
21362136
# allow reentrancy as best shot at recovering from an otherwise fatal error
2137+
# TODO: could reentrancy lead to unrecoverable asyncio loop? next time we get
2138+
# hanging check for the warning below. the tests must be parallely runnable
2139+
# without resource conflicts so maybe the failed worker doesn't end up as completed task?
2140+
logging.warning(f"Reentrancy by {worker.id}!")
21372141
next.params["max_concurrent_tries"] = (
21382142
next.params.get_numeric("max_concurrent_tries", 0) + 1
21392143
)

0 commit comments

Comments
 (0)