trustyou / dagger

Dagger is a Python micro framework that performs tasks, providing you with parallel execution, and dependency resolution.
MIT License
6 stars 4 forks source link

per-task retry option #4

Closed scoder closed 7 years ago

scoder commented 7 years ago

This change adds a retry option at the task level in order to allow idempotent tasks to to be repeated on (temporary) failures.

From the wording in the ticket, it might be that the original intention was to have a per-graph execution option that repeats any of the tasks on failure, but my intuition leans towards preferring a per-task option, as not every task might be safely repeatable. Please advise if this is acceptable. A per-graph option can easily be implemented on top of this change.

Fixes issue #3.