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.β¦