Skip to content

Add option to start executing task from step X #2318

@kosovojs

Description

@kosovojs

Description

Would be nice to be able to start execution of task from any step (something like task do_stuff --from-step 4).

Some of my taskfiles are just running some ETL-like processes and i don't have any good way of using existing functionality to skip steps (or... not wanting to hack my way into (ab)using those). Sometimes task fails at initial steps. Then i usually have to copy task definition and create a new task with only required steps, or i have to comment out the steps i don't want to run, which i can forget about :) So something like proposed "--from-step 4" would really help.

Sure, this can be expanded into "--skip-steps 2,3,6,8" and "--run-steps 3,8,9,15", but i would think that "--from-step" would be a good start. If any of steps are other tasks, i would consider them as "one step", not the amount of steps that sub-task (and possibly subtasks of that subtask) would have. Probably the same goes with loops - that would be considered "one step", where it makes sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions