Intermittent "No cache is found for key" for cache created by upstream job

caching
cache
2.0

#1

In our workflow we have one job that saves a cache for a downstream job in the same workflow to use it. Over the last week or so we started seeing the downstream job occasionally reporting “No cache is found for key” even though the upstream reported “Stored Cache” success.

The above is similar flow https://github.com/circleci/frontend/blob/master/.circleci/config.yml is using for versioned *restore_repo

btw. I think this issue could be related to Non-deterministic cache-restore behaviour


#2

Looks like in my case - it was a missing an explicit dependency (via “requires:”) on the upstream job that was building the cache - occasionally the job creating cache was finishing after the job needing it started. It was a bit hard to see in the workflow UI (I still love it).

Anyways - thanks to support, they caught it, adding the dependency now.


#3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.