Replies: 4 comments 6 replies
-
This will lead to a community fork that everyone will adopt or mass exodus to something else. |
Beta Was this translation helpful? Give feedback.
-
Thank you for raising these use cases to us. We understand that custom task runners have been used for a myriad of reasons. We're not trying to block users from doing those things, but instead trying to get better control over how things are done. Some of the use cases discussed are being or have already been addressed:
This is something we are working on. Stay tuned for more information.
Root tasks are indeed a thing. The root project of a workspace can have targets and are a better place for many of these things. Many of the use cases discussed do not and should not require a custom task runner.
Each executor and generator should read the feature flags. I don't think that belongs in the task runner. In addition, this is an example of how some of the assumptions of Nx can be broken by these custom task runners. Nx will cache outputs of executors based on the inputs. It will not invalidate cache for feature flags from an external source unless there is a runtime input which prints the feature flag information.
This is the behavior of
Neither of these checks should be done as part of running tasks. This can either be a conformance rule or a root task which is run before others in the pipeline.
This is available with
Sorry, I'm not familiar with Projen, if you create a separate feature request we can discuss it there.
Both Nx and Nx Cloud can be run on prem without talking to any external cloud providers and are used in organizations that have some of the most stringent security policies. Let us know what you are currently doing and we can advise you on an alternative method which does not involve custom task runners.
What kind of performance improvements have you made? Would you mind sharing them with us so we can provide those improvements to more Nx users?
What are your security policies? Reach out to us and we can review your policies and see if Nx Cloud can be used. Again, thank you for providing these use cases to us. We've learned many interesting use cases recently some of which we are looking to provide to more users in an official manner. Please continue to discuss the use cases of custom task runners. Let us know your use cases and we can advise on an alternative method to do the same things. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for Zooming with us yesterday. Jason and I have a design that should address your use cases. We will publish an RFC early next week and provide an implementation for you to try. Other folks on the thread: I will link the RFC here once it is published. Please check it out to see if it addresses your use case. |
Beta Was this translation helpful? Give feedback.
-
This is the RFC: #29637 Please take a look and leave feedback. If you have a lot of nuanced feedback that requires a lot of back and forth, we can jump on a call to discuss it. |
Beta Was this translation helpful? Give feedback.
-
I wanted to take a minute and inform the team of the myriad of other ways we use custom task runners, beyond what the blog mentioned. I don't see how any of this will work after Nx 21.
In no particular order
As you can see, a lot of it is run once/at the beginning use cases that only task runners provide. It gives us guardrails and integrations with other tools. If root tasks were a thing, it might work, but task runners are at the perfect spot to do all of these things today.
Beta Was this translation helpful? Give feedback.
All reactions