My build is failing due to a cache miss

Caching is a good strategy for optimizing jobs on CircleCI as it enables the reusing the data from expensive fetch operations from previous jobs. However, cache hits are not guaranteed; caches created via the save_cache step are only stored for up to 30 days.

Hence if you're writing your jobs in a way that they fail or do the wrong thing when there's a cache miss, consider improving them to be resilient to a cache miss. For example, a job that makes use of cached dependencies should be written such that it would be able to do a fresh fetch of the required dependencies upon a cache miss, instead of failing.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.