Finalizer tasks are not run when the build is cancelled #28399
Labels
closed:duplicate
Duplicated or superseeded by another issue
in:execution-engine
incremental, up-to-date, overlapping outputs
Current Behavior
Let's imagine we have two tasks:
a
b
and we have declared that
task("a") { finalizedBy("b") }
.If we cancel the build (CTRL-C in the CLI, stop button in IDEA) while
a
is running, botha
andb
are marked as cancelled.Expected Behavior
a
should be cancelled, butb
should run anyway.Context (optional)
I would expect that long-running tasks that start servers would fall under the same use-case, and thus would also need to be finalized even if they are cancelled before finishing.
Steps to Reproduce
Gradle version
8.3
Build scan URL (optional)
No response
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: