Skip to content

Check all resources for a job before starting it when automatically triggered #9787

Open

Description

@taylorsilva

Summary

Use-case: A job has multiple git inputs that trigger the job. We need to ensure the latest versions of these git resources are used. When one of the resources triggers the job, there's no guarantee that the other triggering resources have their latest versions. Concourse has always behaved this way.

Currently when a job is automatically triggered, only non-triggering resources that have surpassed their check interval are checked. Triggering resources are automatically checked by lidar, so the job scheduler doesn't check these. This is done to minimize the number of checks we run.

The exception to this is manually triggered jobs; all input resources are checked regardless of their check interval.

Proposed Solution

Add a new config option to jobs (e.g. always_check_inputs or something similar), when set to true, causes automatic triggers of jobs to check all resources, similar to when the job is manually checked.

Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions