Skip to content

Another deployment is in progress

Detection

  • String: ALREADY_IN_PROCESS
  • Applies to: deployment errors

Examples

  • Deployment failed (ALREADY_IN_PROCESS)

Resolution

Another deployment or setup change is running in the target org, often the deployment simulation of an older job of the same Pull Request.
- Wait for it to finish (Setup -> Deployment Status), then run the job again
- Call sf hardis:project:deploy:cancel from the cancellation hook of your CI jobs: when a new commit cancels a job, its deployment simulation is cancelled in the org too (https://sfdx-hardis.cloudity.com/hardis/project/deploy/cancel/)
- Turn on the optional "one job at a time per org" setting of your CI/CD files, so the deployment checks and deployments of an org wait for each other (https://sfdx-hardis.cloudity.com/salesforce-devops-setup-init-project/#one-job-at-a-time-per-org)

Comments