> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Merge Queue: Re-run failed checks

> Re-run a pull request's failed GitHub Actions or Buildkite jobs, automatically or by hand, without resubmitting it or losing its place in the queue.

**Flaky job? Trunk can now re-run just the failed jobs and keep the pull request's place in the queue.**

* **Automatic Re-runs.** Name the jobs you know are flaky, and Trunk re-runs them when they fail, even for the first pull request in the queue, which otherwise fails at once.
* **From Trunk.** Click **Re-run failed checks** on a pull request whose tests failed.
* **Now or when CI finishes.** Re-run at once, or wait for the rest of CI so passing jobs aren't stopped and run again.
* **Re-runs you start in your CI count too.** Re-run failed jobs in GitHub Actions, Buildkite or GitLab CI, and Trunk tests the pull request again.
* **GitHub Actions and Buildkite.** Buildkite re-runs need a Buildkite API key in **Settings** → **Integrations** → **Buildkite**.

To start, turn on **Allow Re-running Failed Checks** in your queue's **Settings**, or through the [API](https://docs.trunk.io/api/mergequeues/update-a-merge-queues-configuration.md). See [Re-run failed checks](https://docs.trunk.io/merge-queue/using-the-queue/rerun-failed-checks.md) for details.
