Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): provide taskGraph for every task calculation #18410

Merged
merged 4 commits into from
Aug 1, 2023

Conversation

Cammisuli
Copy link
Member

Current Behavior

When using the daemon - the taskGraph was not updated while recalculating the inputs for the task hashes.

Expected Behavior

The taskGraph is now passed and used for every call to the hashTask function, so the latest version of the taskGraph is used.

Related Issue(s)

Fixes #

@vercel
Copy link

vercel bot commented Aug 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2023 5:22pm

Comment on lines 62 to 63
hashTask(task: Task, taskGraph?: TaskGraph): Promise<Hash>;
hashTasks(tasks: Task[], taskGraph?: TaskGraph): Promise<Hash[]>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it optional here?

@@ -85,7 +84,7 @@ async function createTasks(
const tasks = Object.values(taskGraph.tasks);

await Promise.all(
tasks.map((t) => hashTask(hasher, projectGraph, {} as any, t))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was this object being passed for?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was used for custom hashers 🤷🏼

@FrozenPandaz FrozenPandaz merged commit ce2c6d6 into nrwl:master Aug 1, 2023
15 checks passed
@github-actions
Copy link

github-actions bot commented Aug 7, 2023

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants