gwforg / gwf

A flexible, pragmatic workflow tool.
https://gwf.app/
GNU General Public License v3.0
31 stars 12 forks source link

Allow gwf touch to only touch parts of the graph #403

Closed LudvigOlsen closed 1 year ago

LudvigOlsen commented 1 year ago

I want to use gwf touch to avoid rerunning some targets after changing the format of some input files. But I have some not-run, unrelated targets in my workflow (no dependencies between them). This causes touch to raise a FileNotFoundError for the output of the not-run target. Could it be possible to optionally pass a regex (like for gwf run) to only have touch affect a part of the graph (the matching targets and all their dependencies)?

E.g.: gwf touch my_job*

I am on v1.8.5 (due to https://github.com/gwforg/gwf/issues/402)