dstack icon indicating copy to clipboard operation
dstack copied to clipboard

[Feature]: Introduce run dependancies

Open james-boydell opened this issue 6 months ago • 1 comments

Problem

Some runs may need to be run sequentially and depends on a previous run completing successfully.

Solution

Introduce a depends_on field, in which a run can be given another run ID in which it is dependant on. Once the previous run finishes, the current run can start.

This could be expanded to have different start reasons. Initially, starting a run when a previous run is successful will be the most common use case. If the previous run fails, so does the dependant run. However I could potentially see wanting to start a run if the previous job fails.

Workaround

Use of third party tools to coordinate dependant runs.

Would you like to help us implement this feature by sending a PR?

No

james-boydell avatar Jun 17 '25 15:06 james-boydell