Skip to content

Remove date portion of run command name#147

Merged
steventux merged 1 commit into
mainfrom
overwrite-deploy-run-commands
Jun 19, 2026
Merged

Remove date portion of run command name#147
steventux merged 1 commit into
mainfrom
overwrite-deploy-run-commands

Conversation

@steventux

Copy link
Copy Markdown
Contributor

Description

Remote machines are limited to 25 run commands.
The command we currently issue when deploying has a date in the name so we hit this threshold regularly.
Run commands with non-unique names overwrite one another.
For the purposes of deploying to a machine this is fine as the command contains the clean sha (PR number or version) and the machine name eg. deploy-mbsgw-v1-2-0-mbsgw-dev

Jira link

Fix for https://github.com/NHSDigital/manage-breast-screening-gateway/actions/runs/27763932173/job/82168622427

image

Review notes

We may need to remove existing deploy run commands with

az connectedmachine run-command list --resource-group "<rg-name>" --machine-name "<name>" --query "[].name"
az connectedmachine run-command delete --yes --no-wait --name "<command-name>" --resource-group "<rg-name>" --machine-name "<name>"

Review checklist

  • Check database queries are correctly scoped to current_provider

Azure Arc remote machines are limited to 25 run commands.
The command we currently issue when deploying has a date in the name and this uniqueness means we hit this threshold regularly.
Run commands with non-unique names overwrite one another. For the purposes of deploying to a machine this is fine as the command contains the clean sha (PR number or version) and the machine name.
@steventux steventux merged commit 3cc5ec1 into main Jun 19, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants