https://prefect.io logo
Title
s

Sergey Goncharov

07/01/2022, 3:32 PM
Hi all! I've already written that question into #prefect-community , but maybe it's better to ask here I'm new here and only started with my way with Prefect. I'd like to ask if someone could give some advice or just a documentation (I haven't found any): I'm using Prefect 2.0/beta, there I'd like to create a deployment for a flow with multiple tasks, each of them should use its own docker image. For Prefect v1 I used CreateContainer from prefect.tasks.docker library, but for Prefect v2 I cannot find any replacement. Please, any advices? Does Prefect 2 have that feature?
1
d

Dylan

07/01/2022, 3:38 PM
Hey @Sergey Goncharov! Prefect 2 doesn’t support per-task images at this time. However, it’s very straightforward to create a flow that starts other flows, each of which can use their own image. Here’s a doc that discusses subflows: https://orion-docs.prefect.io/concepts/flows/#subflows
👍 2
s

Sergey Goncharov

07/01/2022, 3:42 PM
thank you a lot! Seems like what I've been looking for
d

Dylan

07/01/2022, 3:43 PM
🙌