Here I have 2 questions.
- I need to run an aiohttp session which shall simultaneously make several requests to different urls and download several files and return a list of absolute paths to these files on disk. This list shall be passed to another async function.
Is there a way to run an "async def" function within a dagster job and build an async pipeline?
- In fact the length of the above mentioned list may differ from case to case. Each file requires a long and heavy processing and there is no way to make it async as the processing is blocking (unfortunately). So the only way is to start such processing in separate threads or processes or (as we do) - in separate docker-containers on different machines.
Can dagster dynamically create docker-containers with ops, return any output from them and kill each of them on container-exit?