feat(graph_engine): yield control to other threads before node run. (#17689)

Signed-off-by: -LAN- <laipz8200@outlook.com>
pull/18203/head
-LAN- 10 months ago committed by GitHub
parent c9f18aae0f
commit ec29bcf013
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -641,6 +641,8 @@ class GraphEngine:
try:
# run node
retry_start_at = datetime.now(UTC).replace(tzinfo=None)
# yield control to other threads
time.sleep(0.001)
generator = node_instance.run()
for item in generator:
if isinstance(item, GraphEngineEvent):

Loading…
Cancel
Save