-
Notifications
You must be signed in to change notification settings - Fork 94
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
Datastore fix for removed taskdef. #5067
Conversation
Bumped onto the 8.0.x branch, @hjoliver can you rebase this one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've checked this out and run the bug recreation steps from the issue. The traceback appearing on master is fixed, and looking at the gui, the removed task is not present, which is super.
I have a small query about the logs after restart, removed task b is appearing in the restart logs as failed. Is this by design? Is this confusing for users if their removed task appears in the logs (perhaps apart from maybe being warned that it was once there but now removed). I'm probably missing something!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reproduced, and fix confirmed working.
I suppose we have to filter out DB loads somewhere.
Good spotting. It's not exactly wrong - if the removed task was still running at shutdown, the scheduler should poll it and log its status and progress (but there would be no further instances of it). However, I'm not sure why it is being polled here, as it failed before shutdown. Investigating ... on second look at the log, both tasks are getting polled, so that's fine. We're only polling failed tasks in the task pool (i.e., incomplete tasks) not all failed tasks. |
@datamel - I've rebased to remove all the spurious commits that appeared after changing the PR base branch (not sure why it did that)... and added a new test. I'll cherry-pick to master once this is approved. |
FYI: we've been merging 8.0.x into master (you can create a PR from the GH web app). |
Co-authored-by: Melanie Hall <37735232+datamel@users.noreply.github.com>
@datamel I've reformulated the functional test to not rely on timing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All working smoothly for me. Thanks!
Close #5057
Fix datastore bug on restart after removing a task from the graph.
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
andconda-environment.yml
.CHANGES.md
entry included if this is a change that can affect users