# Batch run rules

**URL:** <https://discuss.dvc.org/t/batch-run-rules/537>\
**Category:** Questions\
**Created:** [October 27, 2020, 3:19pm UTC](https://discuss.dvc.org/t/batch-run-rules/537 "2020-10-27T15:19:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hombit](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dvc.org/hombit/32/80_2.png) [@hombit](https://discuss.dvc.org/u/hombit)\
**Post date:** [October 27, 2020, 3:19pm UTC](https://discuss.dvc.org/t/batch-run-rules/537/1 "2020-10-27T15:19:04Z")

</div>

Hello! I read tutorial and have a question about DVC possibilities. Using `make` one can specify a rule in `Makefile` which can applied to all files which names satisfy some template. Is it possible in DVC? I’d like to batch process of a large number of files once and then re-process only new/updated files

---

<div class="post-metadata">

**Author:** ![kupruser](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kupruser](https://discuss.dvc.org/u/kupruser)\
**Post date:** [October 27, 2020, 5:32pm UTC](https://discuss.dvc.org/t/batch-run-rules/537/2 "2020-10-27T17:32:13Z")

</div>

Hi @hombit !

Unfortunately, there is no direct alternative to such a feature. Could you elaborate on your scenario, please?

Thank you,  
Ruslan

---

<div class="post-metadata">

**Author:** ![hombit](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dvc.org/hombit/32/80_2.png) [@hombit](https://discuss.dvc.org/u/hombit)\
**Post date:** [October 27, 2020, 5:48pm UTC](https://discuss.dvc.org/t/batch-run-rules/537/3 "2020-10-27T17:48:29Z")

</div>

My problem is processing of a lot of files, each file is processed independently. If the process crashed or data updated/added I’d like to re-produce only missing data-products, not everything. Makefile makes such tasks easy, because everything you need is the only one rule for some template, i.e. `dir/*.dat`. In DVC I don’t know how to do it without N identical “runs” which makes `dvc.json` non-human-readable and can cause errors if developer forgot to add new runs when data is added

---

<div class="post-metadata">

**Author:** ![shcheklein](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dvc.org/shcheklein/32/173_2.png) [@shcheklein](https://discuss.dvc.org/u/shcheklein)\
**Post date:** [October 27, 2020, 5:48pm UTC](https://discuss.dvc.org/t/batch-run-rules/537/4 "2020-10-27T17:48:35Z")

</div>

It feels that it is at least partially related to this one [https://github.com/iterative/dvc/issues/331](https://github.com/iterative/dvc/issues/331) ? But I also don’t quite understand the full use case- the part with name templates. Is it separate from the incremental updates?

---

<div class="post-metadata">

**Author:** ![hombit](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dvc.org/hombit/32/80_2.png) [@hombit](https://discuss.dvc.org/u/hombit)\
**Post date:** [October 27, 2020, 5:50pm UTC](https://discuss.dvc.org/t/batch-run-rules/537/5 "2020-10-27T17:50:08Z")

</div>

This issue looks very relevant for me, thank you!

---

<div class="post-metadata">

**Author:** ![shcheklein](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dvc.org/shcheklein/32/173_2.png) [@shcheklein](https://discuss.dvc.org/u/shcheklein)\
**Post date:** [October 27, 2020, 5:52pm UTC](https://discuss.dvc.org/t/batch-run-rules/537/6 "2020-10-27T17:52:17Z")

</div>

Thanks!! It would be great if could chime in the ticket! It’ll help us prioritize this.
