T
Task•3w ago
Philonous

Running task when dependency is not up to date

I have a task that restarts/reloads a service that depends on a number of other tasks, e.g. a build task that builds the service executable. I'd like for the task to run if any of its direct dependencies are dirty (that is, were not skipped as "up to date"), similarly how make handles dependencies. Unfortunately, the dependencies don't create convenient files to timestamp (e.g. they create a docker image) * Is there already a way to accomplish this? * I could probably have the dependencies create/touch dummy files when they run so I could compare timestamps, but this feels like the sort of trick I had to use in make 😅 * Is there perhaps another elegant way to do this?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?