Volker L
RuntimeError: There is no current event loop in thread 'AnyIO worker thread'.
Nate
from parallel_requests import parallel_requests, parallel_requests_async from prefect import task, flow @task def download(urls): return parallel_requests(urls) @task async def download_async(urls): return await parallel_requests_async(urls) @flow def run(): urls = ["<https://query2.finance.yahoo.com/v7/finance/quote?symbols=AAPL>"]*10 res = download_async(urls) print(res[0]) if __name__=='__main__': run()
parallel_requests
AnyIO
parallel_requests_async
AnyIO (which prefect is using??).
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.