Interview Prep/CI/CD/GitHub Actions and GitLab CI in Production

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.

All CI/CD questions Roadmap: GitLab CI/CD

More on GitHub Actions and GitLab CI in Production