Preventing Cache Races

CI/CD
Jul 2, 2025
Preventing Cache Races

RWX is the only CI/CD platform that has intelligent, automatic caching. Specify a filter, and RWX takes care of the rest. Other platforms will spend lots of time and compute running redundant tasks – the same commands, on the same files, as has previously been executed.

With a recent change, RWX caches even more effectively by preventing cache races.

#Cache Races

Previously, it was possible for two tasks with the same cache key to execute at the same time.

Loading diagram...

#Preventing Races

Running into this race is especially common for engineering teams using a monorepo. With an embedded run per package in a monorepo, it's possible to have a very large number of redundant tasks.

In an effort to reduce compute, maximize cache hits, and make builds more reliable, RWX will now prevent cache races. When two tasks have the same cache key, the second task will wait for the first one to finish executing so that it can be a cache hit.

When this scenario occurs, you'll see a message in the UI:

This task has the same cache key as another in-progress task in this run. This task will start once that task finishes.

#Demo

Never miss an update

Get the latest releases and news about RWX and our ecosystem with our newsletter.

Share this post

Enjoyed this post? Please share it on your favorite social network!

Related posts

Read more on updates and advice from the RWX engineering team

See all posts
RWX November 2025 Recap: container image builds, git patching runs, OTEL, and more
CI/CD

RWX November 2025 Recap: container image builds, git patching runs, OTEL, and more

At RWX, we use our own product to rapidly prototype, develop, and ship features all the time. Here's what we've built recently...

Dec 2, 2025
Read now
We deleted our Dockerfiles: a better, faster way to build container images
CI/CD

We deleted our Dockerfiles: a better, faster way to build container images

Two weeks ago, we deleted the Dockerfile for our application, and we deleted the step in our CI pipelines that previously ran docker build.

Nov 24, 2025
Read now
rwx run - development without the push and pull
CI/CD

rwx run - development without the push and pull

Beginning with version v2, rwx run can now launch a build directly from your terminal - local code changes included.

Nov 20, 2025
Read now