Hi Everyone,
I need help implementing a specific objective.
Context:
We are using Prefect for our inferencing pipeline, where different algorithms have their own respective flows. For example, we have three algorithms—*a1, a2, and a3*—and for each, we create separate flows—*f1, f2, and f3*.
The issue is that every time we create a new flow, we need to update the Docker image (we are running Prefect using Docker on a local VM). However, most of the code in all these flows is the same, with only a few differences that can be handled through environment variables.
Objective:
I want to simplify this process so that if a new algorithm (a4) is introduced and requires a new flow (f4), I can simply run a bash script that:
• Automatically creates the new flow (f4)
• Handles the necessary deployment
• Does not require rebuilding or changing the Docker image
This is one approach I could think of, but I'm open to better solutions.
Key Requirement:
I do not want to modify or rebuild the Docker image each time a new flow is added.
If anyone has suggestions or alternative solutions, I would greatly appreciate them!
Hope I was able to explain my issue clearly.
Thanks!