has anyone had an issue with deployments not refle...
# ask-community
t
has anyone had an issue with deployments not reflecting code updates? we copy files into our docker containers when we build it, but our deployments seem like they're running out of date code. we updated our on crash/fail hooks recently but our deployments don't seem to be reflecting the new code. when I open up a shell inside of the container tied to a deployment I see the right hooks. but when our deployment fails it still logs the old hook. has anyone seen something like that before?
when I open up the
flows
section in the prefect UI I see our flows are all out of date, does prefect deploy not update the flows?
b
Hey Thomas! When you create a new image with the updated code baked in, you'll need to re-deploy so that new image is used for future flow runs. When you go to inspect the flow runs using the old hook, and check the deployment tied to those runs, can you see the image that is being referenced for them? It may be an older one that does not have the flows with the updated hooks
t
hey bianca, I figured this out and it's all on me. I left a task definition arn in the workpool on accident with a hardcoded image =/ glad it only took me a few hours to figure it out XD
🙌 1
b
Oh that'll do it
Crisis averted 🫡