mirror of
https://github.com/xcat2/confluent.git
synced 2026-08-03 16:07:00 +00:00
7ebc1dc616
import_csv was left with several synchronous idioms: - search_record is a coroutine function, but was called without await. The returned coroutine is always truthy, so the rescan on incomplete discovery data never happened, and iterating the result raised TypeError: 'coroutine' object is not iterable - the node creation loop iterated an async generator with plain for - the per-node discovery assignment was forked off with os.fork() while the event loop was running, and the child then built a fresh session on the inherited selector Assign discovery entries with asyncio.gather instead of a forked child, which keeps the assignments concurrent and lets their exit codes propagate. The forked child always ended in sys.exit(0), so its accumulated errorcode was discarded.