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: don't emit taskPending if task is skipped #555

Merged
merged 1 commit into from
Feb 22, 2019
Merged

Conversation

thsig
Copy link
Collaborator

@thsig thsig commented Feb 21, 2019

Fixes #540.

This fixes an issue in TaskGraph where taskPending events were emitted for tasks with up-to-date cached results. This led to the task graph UI on the dashboard displaying the nodes corresponding to skipped tasks in a permanent pending state.

This was addressed by only emitting the event if the task was, in fact, added to TaskGraph's index.

@thsig thsig added this to the 0.9.2 milestone Feb 21, 2019
Copy link
Collaborator

@edvald edvald left a comment

Choose a reason for hiding this comment

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

Would be good to add a test case for this, otherwise 👍

@thsig thsig force-pushed the task-pending-event branch from 153350c to d9196b2 Compare February 21, 2019 19:18
@thsig
Copy link
Collaborator Author

thsig commented Feb 21, 2019

Added a test case for this just now.

This fixes an issue in TaskGraph where taskPending events were emitted
for tasks with up-to-date cached results. This led to the task graph UI
on the dashboard displaying the nodes corresponding to skipped tasks in
a permanent pending state.

This was addressed by only emitting the event if the task was, in fact,
added to TaskGraph's index.
@thsig thsig force-pushed the task-pending-event branch from d9196b2 to 74e2c5d Compare February 22, 2019 13:21
@thsig thsig merged commit 7e26135 into master Feb 22, 2019
@thsig thsig deleted the task-pending-event branch February 22, 2019 13:38
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.

taskPending event emitted when it shouldn't
2 participants