Urgent.News

What's breaking now, across hundreds of outlets.

Tech

GitHub Actions concurrency: 3 of 5 Deploys Canceled Without Asking

I merged five pull requests to main in about two minutes. Five pushes, five deploy runs. Two days later a teammate asked why the worker was still running last week's code. The Actions tab told the story: run 1 green, run 5 green, and runs 2, 3 and 4 grey with a little "cancelled" badge. I had never set cancel-in-progress . I had specifically left it off because I wanted every deploy to run.…

I merged five pull requests to the main branch, completing them within two minutes. However, two days later, a colleague questioned why a worker was still executing last week's code. The Actions tab revealed the answer: run 1 had succeeded, runs 2, 3 and 4 had been canceled, and run 5 was green. I had not set cancel-in-progress, as I intended every deploy to run.

The issue with GitHub Actions concurrency arises when a group has one running and one pending job. When a new job arrives, the pending job is canceled, regardless of the cancel-in-progress setting. To prevent this, scope the group key by using github.ref, matrix.* , inputs.* , or by making deploys diff against the last successful deploy.

My workflow aimed to deploy one job at a time, but GitHub Actions interpreted it as "one deploy at a time, and at most one waiting." The five merges timeline shows that runs 2, 3, and 4 were canceled without my knowledge. Their changes, though present in the main branch, were not deployed due to the concurrent group handling. The cancellation did not impact the code since commit 5 included the changes from commits 2, 3, and 4.

This behavior is crucial when deploys rebuild everything from the latest commit. However, the one-pending-slot rule can silently drop work if a run only handles "my changes." To reproduce the cancel behavior, push several commits quickly, each as a separate push. You will observe runs between the first and last canceled. The annotation "Canceling since a higher priority waiting request for 'test-group' exists" explains the mechanism.

This behavior occurs in various scenarios, such as diff-based deploys, matrix jobs with a job-level group, workflow_dispatch with different inputs, and shared groups across branches. To scope a concurrency group key effectively, include everything that makes two runs non-interchangeable. Examples include using ${{ github.workflow }}-${{ github.ref }} for one group per workflow per branch, and ${{ github.workflow }}-${{ github.head_ref || github.run_id }} to ensure main never cancels anything.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

How I Built an Open-Source Android ADB + Vision Agent for Hinge (Bypassing FLAG_SECURE Without Root)

Most AI dating tools are paid text-paste wrappers or brittle scripts hitting private APIs. I wanted to build an actual multimodal mobile UI agent that operates the official Hinge Android app on an…

  • Engineer developed "Hinge AI Wingman" open-source Android ADB + Vision agent
  • Bypassed FLAGSECURE by capturing emulator window externally and normalizing resolution
  • Integrated two vision backends - Claude Vision and Ollama for banter generation and UI actuation

Sanfeng Cloud Free Cloud Server Real-world Test: A Full Record of Backup, Migration, and Reinstallation Struggles + Six Months of O&M Notes

The previous "steady as an old dog" renewal guide omitted a deep dive I performed during the third month—a complete process of backup, migration, and environment reinstallation.

  • Free cloud server tested with backup, migration, and reinstall
  • 1 core, 1GB RAM, 5Mbps bandwidth allocated
  • No hidden fees, root access and Docker/Nginx configuration allowed

More from Monday, 30 November 2026 →