-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: short cmdless tasks exit when dependencies are done
Before the last update (which allowed cmd-less tasks to be short), all cmd-less tasks were considered "long", and were kept alive until the run was canceled by something else. The last update mistakenly preserved this keepalive behavior, even for "short" cmd-less tasks.
- Loading branch information
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
ok | ||
|
||
watcher starting | ||
. | ||
invalidating {subtask} | ||
|
||
subtask starting | ||
hello | ||
exit ok | ||
invalidating {test} | ||
|
||
test starting | ||
exit ok | ||
|
||
run done | ||
|
||
watcher canceled; stopping |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[[task]] | ||
id="test" | ||
type="short" | ||
dependencies=["subtask"] | ||
|
||
[[task]] | ||
id="subtask" | ||
type="short" | ||
cmd="echo hello" | ||
dependencies=["watcher"] | ||
|
||
[[task]] | ||
id="watcher" | ||
type="long" | ||
cmd="while true ; do echo . ; sleep 1 ; done" |