Docker and CI/CD · Senior · Question 74 of 75
Why should a deploy job use a concurrency group without cancelling runs in progress?
- ✓Correct answer: Cancelling a half-finished deploy can leave production inconsistent
- 2Deploy jobs can't be cancelled by GitHub once they have started
- 3Running two deploys at once is always faster than queueing them
Explanation
Queueing deploys keeps them in order and lets each finish. Cancelling is fine for test runs, where stopping midway has no side effects.