so my question is where are the flow changes incor...
# ask-community
v
so my question is where are the flow changes incorporated from ? -> the github location or the flow changes baked into the docker image referenced in the worker-pool ?
b
Hey Vivek! With the example you provided, the deployment is referencing the flow entry point present in github repo you've specified with
.from_source()
. If you make changes to the flow code in that repository, it should be reflected in the future runs of that flow.
At the end of the day, what would be your preference for managing your flows and dependencies? Do you want to bake your flow code and dependencies into a image that gets pushed to ECR? Or would you rather have limit your image just to your dependencies, and have your code pulled from GitHub at runtime?
v
@Bianca Hoch - I was wondering if there is a way I am able to deploy the flow changes as part of a pull request rather than merging the pull request. What is the point of specifying the docker image in the worker-pool if the changes only from the GithubRepo are incorporated as part of the pull request
b
I was wondering if there is a way I am able to deploy the flow changes as part of a pull request rather than merging the pull request.
Hmmm, I'll need to get back to you about this one. I know we have a few CI/CD examples here that use GitHub actions to automatically deploy your prefect flows after pushing changes to a branch.
What is the point of specifying the docker image in the worker-pool if the changes only from the GithubRepo are incorporated as part of the pull request
If you're referring to the docker image field in the work pool base template, that's to specify the default image to use for flows submitted to a containerized work pool (ECS, ACI, Cloud Run, etc.). Let's say you just want to pull code from GitHub using
.from_source
, and you don't specify a particular image for a flow. Whatever image you have set as the default for your work pool will be used whenever the container for the flow run is spun up in your execution environment.
v
ok in my case i have made changes to my flow code which is reflected in the image specified in the worker-pool but when i deploy the flow code which references the Github repo -the changes are not reflected when i run the flow code
I assume it is because the
.from_source()
. github repo overrides the image specified in the worker-pool