How do you handle long-running or manual-wait pipelines on hosted runners?
IntermediateProductionGitHub Actions and GitLab CI in Production
Answer
Do not hold a runner while waiting. In GitHub, environment approvals pause the run without consuming runner minutes (the job has not started until approved). In Jenkins, use input with agent none. In GitLab, manual jobs wait without a running runner. For waiting on external systems (a long deployment or a certification), use callbacks (webhook/repository_dispatch) to trigger the next workflow instead of polling in a loop.
More on GitHub Actions and GitLab CI in Production
How do you organise reusable workflows for an organisation on GitHub?IntermediateHow do you reduce GitHub Actions minutes cost on private repos?IntermediateHow do you secure self-hosted runners?AdvancedHow do you design the GitHub Actions OIDC trust policy for AWS safely?AdvancedHow do you handle approvals and deployments across environments in GitHub Actions?IntermediateHow do you handle required checks when workflows use path filters or matrices?Advanced