Register the worker with PipelineRunner.add_workers() before calling run() instead. The worker argument still works but now emits a DeprecationWarning and will be removed in a future release. Update the runner docstrings, the run_test() helper, and all examples (including the asyncio.gather() forms) to use the new pattern.
358 B
358 B
- Passing a worker to
PipelineRunner.run()is deprecated. Register the worker withPipelineRunner.add_workers()before callingrun()instead;run()now blocks untilend()/cancel()is called rather than until the passed worker finishes. Theworkerargument still works but emits aDeprecationWarningand will be removed in a future release.