{{ message }}
Repository navigation
feat: add --failfast and failfast: true to control dependencies - #2525
Merged
Merged
Conversation
andreynering
force-pushed
the
dep-failfast-1246
branch
from
November 22, 2025 21:59
b4e50e0 to
734fdba
Compare
--failfast and failtest: true to control dependencies--failfast and failfast: true to control dependencies
vmaerten
reviewed
Nov 23, 2025
vmaerten
left a comment
Member
There was a problem hiding this comment.
As we're merging all our Taskfiles into a single one, we've run into unexpected behavior with the following setup:
Main Taskfile:
version: '3'
failfast: true
includes:
other: Taskfile2.yaml
tasks:
default:
deps:
- dep1
- dep2
- dep3
- dep4
dep1: sleep 1 && echo 'dep1'
dep2: sleep 2 && echo 'dep2'
dep3: sleep 3 && echo 'dep3'
dep4: exit 1
Included Taskfile:
version: '3'
failfast: false
tasks:
default:
deps:
- dep1
- dep2
- dep3
- dep4
dep1: sleep 1 && echo 'dep1'
dep2: sleep 2 && echo 'dep2'
dep3: sleep 3 && echo 'dep3'
dep4: exit 1
When running task, I expect failfast to be enabled, but when running task other:default, I expect failfast to be disabled. Currently, this doesn’t happen:
In my opinion, there are a few possible ways to address this:
- Enforce failfast only through
.taskrcfor the global one, but keep the failfast for a local task - Disallow failfast within included Taskfiles (similar to how dotenv works).
- Document the current behavior more clearly.
andreynering
force-pushed
the
dep-failfast-1246
branch
from
November 28, 2025 19:26
734fdba to
eeb6686
Compare
Member
Author
vmaerten
approved these changes
Nov 29, 2025
vmaerten
left a comment
Member
There was a problem hiding this comment.
Could you update the completion scripts to include this new flag?
Bash already supports it (because it parses the help), but Zsh and Fish don’t yet.
Otherwise it looks good ! Pretty exciting 🔥
andreynering
force-pushed
the
dep-failfast-1246
branch
from
December 7, 2025 20:19
eeb6686 to
182dbfe
Compare
Copilot AI
pushed a commit
to libor-m/task
that referenced
this pull request
Mar 27, 2026
…o-task#2525) Co-authored-by: libor-m <1497769+libor-m@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This PR introduces a small behavior change on how dependencies work. Task will now wait for all dependencies to finish running by default, even when any of them fail.
To opt for the previous behavior, either:
failfast: trueto your.taskrc.yml.failfast: trueto a specific task.--failfastflag.--failfastflag will also be considering when using--parallel.