Extending task results returend from the context in the post lifecycle hook #31076
henk-badenhorst
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Nx,
I was experimenting with the Pre and Post Lifecycle hooks in this branch. It works great and is a fantastic addition to NX. The
postTasksExecution
function contains a context parameter that has thePostTasksExecutionContext
interface. This context contains an object ofTaskResults
. However, I am missing the command executed by the user and the timings of the primary command. Therefore, I would like to recommend that we extend theTaskResults
to also include the following:This will be really helpful as currently we need to calculate the command duration by looping over eache task and getting its duration and then adding it all togeather. Secondly having the top-level command is handly to have. In conclusion my question in can we extend the
TaskResults
of the context parameter to return a similar object as that is writtent to the.nx/cache/run.json
?@meeroslav Our team at Rabobank has mentioned this to you in a conversation so I am just tagging you to be aware of this.
Beta Was this translation helpful? Give feedback.
All reactions