Automating Recurring Tasks with GitLab CI/CD Pipeline Schedules
Learn how to implement GitLab CI/CD Pipeline Schedules to automate recurring tasks using Cron syntax and conditional rules to optimize runner usage.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to implement GitLab CI/CD Pipeline Schedules to automate recurring tasks using Cron syntax and conditional rules to optimize runner usage.
GitLab documents a REST endpoint, POST /projects/:id/pipelines/:pipeline_id/cancel , that marks a pipeline as canceled and asks the runner to terminate its active jobs. Job-level timeouts and runner-side SIGTERM handling are separate documented mechanisms that interact with cancellation. Assume a current release line (GitLab 17.x) on SaaS or self-managed ins
Goal I want a reliable way to detect that a GitLab personal access token has expired, as opposed to being revoked, mis-scoped, or rejected for another reason, so that an automation job can trigger rotation instead of failing silently. Assume a recent GitLab version (16.x) where PATs require an expiration date and administrators can cap token lifetime. Constr
Goal: Validate PgBouncer Mode Compatibility with GitLab Rails We need to determine whether the GitLab Rails application can safely operate with PgBouncer in transaction‑mode while retaining its default prepared‑statement behavior, or if session‑mode is required. The decision hinges on the interaction between Rails’ prepared statements and PgBouncer’s pooling
Goal is to receive high-signal alerts such as failed pipelines and direct mentions while keeping overall email volume low. GitLab supports hierarchical notification levels at Global, Group and Project scope, with more specific levels overriding broader ones. The Custom level allows selection of individual events like failed pipeline, fixed pipeline, merge re
Goal Verify that protected variables are correctly injected into a production pipeline that runs on a protected branch or tag, while they work locally on a developer branch. Constraints & Uncertainty Protected variables are only exposed to jobs triggered on protected refs, but the production ref may not be marked as protected in the current project setti
Documented behavior GitLab's web UI documents a fixed keyboard shortcut set: "?" opens the shortcuts overlay, "g" followed by a letter jumps between top-level areas, and "t" opens the file finder on project pages. Shortcuts are suppressed while focus sits in text inputs or textareas so typing never triggers navigation. These bindings match the documentation
GitLab Runners utilize a polling mechanism to request available jobs from the GitLab Rails API. While concurrency is manageable via the concurrent setting in config.toml and the global instance limits, the interaction between multiple runners and the server-side job queue introduces complexity during high-volume bursts. When numerous runners with overlapping
GitLab's built-in gitlab:backup:create task bundles the database, repositories, uploads, and CI artifacts into one timestamped tarball, and gitlab:backup:restore brings the instance back from it. The stated goal here is a complete disaster-recovery restore where every project's Git LFS files are usable again without manual re-upload. The uncertainty is aroun