Skip to content

ENH: a few design ideas #786

Open
Open

Description

@DrorSh

Some ideas I wanted to share:

  • Add an ignore marker.
    Currently we have persist (run if output is missing) and skip (skip the task and everything downstream). An ignore marker could skip only the task itself while still allowing downstream tasks to run. This could be useful, for example, when dependencies or products were removed via DVC (or similar tools) and the user wants to ensure the task is not re-run.

  • Should the file location be part of the task ID?
    At the moment, a task is re-run if the containing file is moved. An alternative design would ignore such changes if the task content itself did not change.

Activity

  1. tobiasraabe commented on Apr 6, 2026

    @tobiasraabe
    Member

    Hi @DrorSh, suprt late to the party but

  2. DrorSh commented on May 1, 2026

    @DrorSh
    ContributorAuthor

    Tobias,

    Thank you so much for your work on the lockfiles! I'm excited to transition to the new version.

    Regarding the two comments above:

    • Thanks for pointing out the configuration option for ignoring a task. I still think a decorator can be helpful, and more in line with the persist and skip features.
    • I'll explore the lockfile accept feature. Looks promising. I'm wondering whether it makes sense to be a bit more paternalistic and require task id uniqueness (regardless of file name). Non-unique task ids mean that DAG representations can be confusing etc. On the other hand, I realize now that moving files around without rerunning tasks might break the chain and the user will not notice. I guess then that its better to leave as is.

    Best
    Dror

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions