Patch successful but not seeing changes in PRD

Hi All,

I deployed my prod app and it went very smoothly. Then made a few changes and ran the suggested: ag ws patch --env prd --infra aws --name service

Logs are below. Everything normal. But new app is not deployed. Load balancer reports 5 clear health checks. I’m baffled (but I’m also not that experienced!). Any ideas? What is the best way to push changes to prod?

(.venv) tristan@Tristans-Laptop agent-app % ag ws patch --env prd --infra aws --name service
Updating workspace: agent-app
DEBUG dev_resources.py: OPENAI_API_KEY = ‘sk-proj-7fqnULBWtnMTjwmu3q9Ak0TWZ8ilZg59FANnH_ixxx’

–**-- Confirm resources to update:
-±> Service: agent-app-prd-ui-service
-±> Service: agent-app-prd-api-service

Region: ap-southeast-2
Total 2 resources

Confirm patch [Y/n]: Y

-==+==- Service: agent-app-prd-ui-service
Updating Service: agent-app-prd-ui-service
Service: agent-app-prd-ui-service updated
Service: agent-app-prd-ui-service updated
INFO Resource saved to: /Users/tristan/Agno Agent
Workspace/agent-app/workspace/output/agent-app-prd-ui/agent-app-prd-ui-service.yaml

-==+==- Service: agent-app-prd-api-service
Updating Service: agent-app-prd-api-service
Service: agent-app-prd-api-service updated
Service: agent-app-prd-api-service updated
INFO Resource saved to: /Users/tristan/Agno Agent
Workspace/agent-app/workspace/output/agent-app-prd-api/agent-app-prd-api-service.yaml

–**-- Resources updated: 2/2

–**-- ResourceGroups updated: 1/1

Update: I had to do some manual push of the image because it built from a previous one. Now I have it deployed. Will see what the next patch behavior does.

Hey @Tristan
Glad to know this. Let us know if you need any help

@Monali we still have major issues with this. Each time we use the ag ws patch approach, it does not create the correct image to deploy. Then we have to go in and manually create a new image and push it. But we are running into issues with that now. Why is the patch process not creating the correct image and directing the deployment to use that image? Are we missing something? Can you help with the proper commands to push changes to prod?

We’re using ag ws patch -e prd -i aws to deploy updates. The command successfully updates AWS resources like the ECS Task Definition and Service for our API (agent-app-prd-api-service).

However, it seems the built-in image build/push step isn’t working correctly – the deployed Task Definition ends up referencing an old image tag/digest in ECR, or sometimes even an incorrect image URI (like pointing to Docker Hub instead of our ECR).

We expect ag ws patch to:

  1. Detect code changes relevant to the service.

  2. Build the corresponding Docker image (e.g., using agent-app/Dockerfile.api for the API).

  3. Push that new image to our ECR repository (e.g., updating the :latest tag).

  4. Update the ECS Task Definition/Service to use that newly pushed image.

Our manual workaround (manual docker buildx push + manual ECS update) works, but we want the ag ws patch command to handle the image update correctly.

Question: How can we configure or troubleshoot ag ws patch to ensure it correctly builds (using Dockerfile.api), pushes, and deploys the latest image for the agent-app-prd-api-service? Is there a specific configuration or naming convention required to link the service definition within Agno to its corresponding Dockerfile for the build step?

Hey @Tristan
Thank you for your question. I’ve shared this with the engineers and we will get back to asap