Skip to content

Don't block parallel stage execution for stages with an unchanged common dependency #11054

Description

@AndrewPollard

I have a stage, say generateInitialConditions, which generates the initial conditions, say initial_conditions.json needed for two simulation stages sim001 and sim002. If I dvc repro sim001 in one terminal, and then dvc repro sim002 in another terminal, I get "Error: failed to reproduce 'generateInitialConditions': initial_conditions.json is busy, it is blocked by (PID #######) c:\users<username>.local\bin\dvc repro sim001"
Given that initial_conditions.json was already up-to-date so generateInitialConditions was going to be skipped anyway, I don't see why these two stages couldn't have been run in parallel.

Desired behaviour: when running dvc repro <stage>, if a dependency of a stage has not changed, do not require that dependency to be unlocked to run the stage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions