Retry Failures While Run in Progress

CI/CD
Jul 22, 2025
Dan Manges
Retry Failures While Run in Progress

RWX has the best developer experience of any CI/CD platform for retrying failures. Unlike GitHub Actions, tasks that fail on RWX can be retried immediately, even while other tasks are still running.

Additionally, RWX executes at a more granular level than any other CI/CD platform. Tasks on RWX are equivalent to steps on other platforms.

On other platforms, if the third step in a job fails, the first two steps have to be re-executed. On RWX, each step is represented as an individual task, and the third step (for example) can be retried without having to re-execute the first two.

GitHub Actions Requires Canceling to Retry

GitHub Actions has the worst retry experience of any CI/CD platform. If one job fails, other running jobs have to be canceled to retry the job that failed.

The "re-run" button does not show up until clicking "cancel workflow." It's a shockingly bad limitation.

When a job fails, engineers have to decide if they want to stop everything to retry right away, or wait for the other jobs to finish before retrying the failure.

GitHub Actions Demo

RWX Demo

Code

GitHub Actions

.github/workflows/demo.yml
on:
push:
jobs:
will-succeed:
runs-on: ubuntu-24.04
steps:
- run: sleep 15
fails-fast:
runs-on: ubuntu-24.04
steps:
- run: exit 1

RWX

The RWX demo uses a clever trick to get the task to succeed on retry.

.rwx/demo.yml
base:
os: ubuntu 24.04
tag: 1.1
tasks:
- key: task-one
run: sleep 15
cache: false
- key: task-two
run: |
if [ "$ATTEMPT_NUMBER" = "1" ]; then
exit 1
fi
env:
ATTEMPT_NUMBER: ${{ task.attempt-number }}

Never miss an update

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

Share this post

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

Related posts

Read more on updates and advice from the RWX engineering team

See all posts
Using an MCP Server to Fix Tests that Failed on CI
CI/CD

Using an MCP Server to Fix Tests that Failed on CI

We shipped an MCP Server via the RWX CLI. Use it to have AI fix tests that failed on CI, powered by RWX tracking test failures as a semantic output.

Aug 8, 2025
Read now
tmpfs for Super Fast Writes
CI/CD

tmpfs for Super Fast Writes

To accelerate performance in high iops scenarios like an npm install, we built support for running tasks using tmpfs.

Aug 6, 2025
Read now
RWX July 2025 Recap: ARM runners, VS Code Extension, and more
CI/CD

RWX July 2025 Recap: ARM runners, VS Code Extension, and more

In July we released ARM runners, a VS Code Extension, and an option to start runs manually. Stay tuned for progress on a new way to build container images.

Aug 4, 2025
Read now