[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the Prefect documentation for this issue.
[X] I checked that this issue is related to Prefect and not one of its dependencies.
Bug summary
When creating a custom flow run for a deployment using a GCP Cloud Run Push work pool, the 'image' value specified in job_variables is not being applied to override the default image. While Prefect correctly acknowledges the custom image in the flow run creation response and UI, the actual execution on Google Cloud Run still uses the default image from the deployment, ignoring the override attempt.
Reproduction
I Created a GCP Cloud Run Push V2 work pool with the default job template, and left the image variable empty. Then, I deployed a flow using the .deploy method.
I also verified in the Prefect UI the flow run page showing the correct overriden image under Job Variables.
Then I checked Google Cloud Run and found that the job was still using the production image instead of the development image specified in the custom run.
This reproduction demonstrates that while Prefect acknowledges the custom image in its responses and UI, the actual execution on Google Cloud Run does not use the overridden image value.
Versions (prefect version output)
Version: 2.19.7
API version: 0.8.4
Python version: 3.12.3
Git commit: 60f05122
Built: Fri, Jun 28, 2024 11:27 AM
OS/Arch: darwin/arm64
Profile: default
Server type: cloud
Additional context
Thread in Slack regarding this issue can be found here.
First check
Bug summary
When creating a custom flow run for a deployment using a GCP Cloud Run Push work pool, the 'image' value specified in job_variables is not being applied to override the default image. While Prefect correctly acknowledges the custom image in the flow run creation response and UI, the actual execution on Google Cloud Run still uses the default image from the deployment, ignoring the override attempt.
Reproduction
I Created a GCP Cloud Run Push V2 work pool with the default job template, and left the image variable empty. Then, I deployed a flow using the .deploy method.
I attempted to run the deployment with a custom image (note the image tag!) using the CLI:
I observed that Prefect correctly acknowledged the custom image in the flow run creation response:
I also verified in the Prefect UI the flow run page showing the correct overriden image under Job Variables. Then I checked Google Cloud Run and found that the job was still using the production image instead of the development image specified in the custom run.
This reproduction demonstrates that while Prefect acknowledges the custom image in its responses and UI, the actual execution on Google Cloud Run does not use the overridden image value.
Versions (
prefect version
output)Additional context
Thread in Slack regarding this issue can be found here.