<#2289 feat(target): Turn drain_one into a async ...
# meltano-repo-activity
g
#2289 feat(target): Turn drain_one into a async method Pull request opened by BuzzCutNorman on <!date^1709777014^{date_short}|2024-03-07T02:03:34Z> This PR proposes adding the asyncio module to the target base. Change
drain_one
into an async method and call it via
asyncio.run
. The thought is
drain_one
spends alot of time on io tasks and the use of asyncio will free up some of that time. I don't know how to resolve the pytest errors of:
Copy code
pytest.PytestUnraisableExceptionWarning: Exception ignored in: <coroutine object Target.drain_one
Any guidance or assistance on how best to resolve these error is much appreciated. --- 📚 Documentation preview 📚: https://meltano-sdk--2289.org.readthedocs.build/en/2289/ meltano/sdk