Skip to content

Conversation

@comp615
Copy link
Contributor

@comp615 comp615 commented Nov 21, 2025

Current Behavior

When using a plugin with postTasksExecution, this is never called in some complex scenarios with continuous tasks.

For instance, we have a task dev which runs the server, and then depends on watch-deps (both continuous). In these scenarios, we never get stats output when the NX run is killed. However, if we remove the watch-deps it seems to work.

Expected Behavior

All invocations of NX which run tasks should ultimately output task data.

NOTE: This changes the output in non-TUI mode to include the second command which was lost before:

 NX   Successfully ran target build-deps for project mylib and 56 tasks it depends on

Nx read the output from the cache instead of running the command for 56 out of 57 tasks.

Licensed to Block Inc..
^CWarning: command "pnpm exec nx watch --projects mylib --includeDependentProjects -- pnpm exec nx build-deps mylib" exited with non-zero status code
———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 NX   Successfully ran target dev for project banking-mfe and 58 tasks it depends on

Nx read the output from the cache instead of running the command for 56 out of 59 tasks.

Licensed to Block Inc..

Related Issue(s)

This is related to #33562, but potentially upstream of that as well. I've tried to test the changes together and ensure that not only do we get invocations, but we see the continuous tasks as well

Closes #33586

@comp615 comp615 requested a review from a team as a code owner November 21, 2025 18:48
@comp615 comp615 requested a review from FrozenPandaz November 21, 2025 18:48
@netlify
Copy link

netlify bot commented Nov 21, 2025

👷 Deploy request for nx-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 0a1400b

@vercel
Copy link

vercel bot commented Nov 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Nov 21, 2025 6:52pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Differing behavior for continuous tasks with and without nx daemon

1 participant