run() now defaults to auto_end=True: the runner ends once every root worker has finished, so single-pipeline bots end naturally when their pipeline does and tests no longer need an explicit runner.end() call. Multi-worker bots whose helpers run forever still trigger shutdown via end() / cancel() from an event handler (typically on transport disconnect). Hosts that add and remove workers across many sessions can pass auto_end=False to keep the runner up.
490 B
490 B
PipelineRunner.run()now ends automatically once every root worker has finished, so single-pipeline bots no longer need an explicitrunner.end()/runner.cancel()call. Multi-worker bots whose helpers run forever (waiting for bus messages) still trigger shutdown by callingend()/cancel()from an event handler (typically on transport disconnect). Passauto_end=Falsetorun()for long-lived hosts (e.g. a FastAPI server) that add and remove workers across many sessions.