Reputation: 41
Here I have 2 questions.
Is there a way to run an "async def" function within a dagster job and build an async pipeline?
Can dagster dynamically create docker-containers with ops, return any output from them and kill each of them on container-exit?
Upvotes: 2
Views: 1665
Reputation: 71
dagster supports both creating ops dynamically at runtime and running each op in its own container. You can read about dynamic mapping here: https://docs.dagster.io/concepts/ops-jobs-graphs/jobs-graphs#dynamic-mapping--collect
And you can configure your job with an executor that has it run each op in its own container: https://docs.dagster.io/deployment/executors#executors (There's a docker_executor that would be a good fit if you're running on Docker, or a k8s_job_executor if you're on Kubernetes).
Upvotes: 1