Menu

Cloud Run Jobs Freeze Their Image
πŸ“°

Cloud Run Jobs Freeze Their Image

DEV Community: databaseΒ·cometa-kaitoΒ·5 days ago
#vnJxtZ3N
#devtodatabase#devto#dev#enter#exit
Long article (356 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Check this first

Read the image the job actually runs.

gcloud run jobs describe < job > --region=asia-northeast1 \ --format= "value(spec.template.spec.template.spec.containers[0].image)"

Enter fullscreen mode

Exit fullscreen mode

Then check whether your fix is contained in it.

git merge-base --is-ancestor < fix-commit > < image-sha > && echo "contained" || echo "not contained"

Enter fullscreen mode

Exit fullscreen mode

If it is not contained, re-running changes nothing . Worse, the job may overwrite data again using the old behaviour.

What is actually happening

The image is pinned in the job definition. When the definition lives in infrastructure-as-code, the tag is declared as a variable, and the job keeps running the old code until that tag is bumped and applied .

local fix β†’ commit β†’ [ wall ] β†’ job execution ↑ image is still the old one

Enter fullscreen mode

Exit fullscreen mode

The awkward part is that the run succeeds. Nothing appears in the logs.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.