nx/docs/generated/devkit/defaultTasksRunner.md
Jason Jean 4e68270efd
feat(core): clean up unneeded continuous tasks after tasks are done (#30746)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

Continuous tasks go until the process is done.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

Continuous tasks are cleaned up after they're no longer needed. AKA once
their dependent tasks are done.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2025-04-22 09:52:51 -04:00

1.9 KiB

Function: defaultTasksRunner

defaultTasksRunner(tasks, options, context?): any

Parameters

Name Type
tasks Task[]
options DefaultTasksRunnerOptions
context? Object
context.daemon? DaemonClient
context.hasher? TaskHasher
context.initiatingProject? string
context.initiatingTasks Task[]
context.nxArgs NxArgs
context.nxJson NxJsonConfiguration<string[] | "*">
context.projectGraph ProjectGraph
context.target? string
context.taskGraph? TaskGraph

Returns

any