A lag in using images from registry with a custom tag (latest)

Is there an expected latency before images can be found in the registry using flyctl deploy?

I have an application that I use for a base image used by other applications in the same org. Every time after a brand new deployment, I encounter this error, that then magically goes away after some period of time. This has been problematic with my CI/CD that I’ve created and I can’t find issues in my own workflows, because after some period of time it just starts working with no other changes.

  • deploy the app that is my base image with success.
  • I can see the image using fly releases command.
  • deploy another app that uses that base image and it fails the query.
  • try again some time later and it works.

Is that expected behavior?

This is the error with an example name for the app:
failed to run query ($appName: String!, $imageRef: String!) { app(name: $appName) { id image(ref: $imageRef) { id digest ref compressedSize: compressedSizeFull } } }: Could not find image <``registry.fly.io/myappsname:latest``>

Just a follow up on this, it works now and did not work just 10hrs ago. No changes on my part.

Is there a CDN-like cache priming that happens with registry.fly.io?

We do have some caching for tags which in turn makes :latest not always up to date. We’ve been using tags in some stuff we need to update instead of latest because of that.