View as Markdown

Pausing the Merge Queue

Understand the pause feature and how to use it during CI incidents.


Pausing Mergify’s Merge Queue suspends its automation, typically during a CI incident. This page explains what pausing does, its impacts, and when to use it.

When you pause the merge queue:

  1. Suspended: The merge queue will be suspended.

  2. Addition to the Queue Continues: Even with a paused merge queue, new pull requests can still join the queue. This ensures pull requests remain organized and ready for when operations resume.

  3. Stops Scheduling and Actions: After pausing the merge queue, Mergify will not schedule new checks or merge pull requests. Pull requests can enter the queue but won’t be acted upon.

  4. Cancel Running Checks: When you pause the queue, Mergify attempts to cancel any running checks for pull requests that are in the queue and will wait for the queue to be resumed.

Navigate to your Mergify dashboard. There you’ll find an option to pause the merge queue. Clicking on this will suspend the queue.

Pause button is in the top right corner in Mergify's dashboard

Pause the queue from the terminal with a reason (required):

Terminal window
mergify queue pause --reason "deploying hotfix"

Resume when ready:

Terminal window
mergify queue unpause

See the queue CLI reference for all pause options and the rest of the queue commands.

You can also pause the merge queue programmatically using the Mergify API.

During a major incident with the CI system, if checks are likely to fail and eject pull requests from the queue, pause the merge queue until the incident is resolved.

If an incident is unrelated to the CI, like a production issue, but you wish to halt merging while allowing checks to run, then the scheduled freeze feature is a more suitable choice.

Benefits of Using the Pause Feature

Section titled Benefits of Using the Pause Feature
  1. Maintain Queue Integrity: During CI failures or other disruptions, pausing ensures pull requests stay in the queue, preserving their order.

  2. Flexibility: It provides an immediate response tool during unexpected complications, giving you control over the merge process.

  3. Reduce Noise: Constantly failing checks during a CI incident can create unnecessary notifications. Pausing the queue mitigates this.

Was this page helpful?