Skip to content

No longer hold dependencies of erred tasks in memory #4918

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

Merged
merged 1 commit into from
Jun 29, 2021

Conversation

fjetter
Copy link
Member

@fjetter fjetter commented Jun 15, 2021

This is a follow up to #4784 and reduces complexity of Worker.release_key significantly.

There is one non-trivial behavioural change regarding erred tasks. Current main branch holds on to dependencies of an erred task on a worker and implements a release mechanism once that erred task is released. I implemented this recently trying to capture status quo but I'm not convinced any longer that this is the correct behaviour. It treats the erred case specially which introduces a lot of complexity. The only place where this might be of interest is if an erred task wants to be recomputed locally. Not forgetting the data keys until the erred task was released would speed up this process. However, we'd still need to potentially compute some keys and I'm inclined to strike this feature in favour of reduced complexity.

Thoughts?

cc @mrocklin @jrbourbeau @crusaderky

  • Closes #xxxx
  • Tests added / passed
  • Passes black distributed / flake8 distributed / isort distributed

@mrocklin
Copy link
Member

In general not holding onto dependencies of erred tasks seems fine to me

@mrocklin
Copy link
Member

@fjetter should this be merged in?

@fjetter
Copy link
Member Author

fjetter commented Jun 29, 2021

@fjetter should this be merged in?

Yes, I'm typically a bit hesitant to merge behavioural changing PRs if there is little feedback. I guess your "seems fine" is the admin override for others and I shouldn't wait for more feedback :)

@mrocklin
Copy link
Member

Yes, I'm typically a bit hesitant to merge behavioural changing PRs if there is little feedback. I guess your "seems fine" is the admin override for others and I shouldn't wait for more feedback :)

From my perspective you are now the admin on tricky scheduler state issues. "Admin" in my mind is loosely defined as "the person who cleans things up if they break" and that's clearly you today :)

Merging.

@mrocklin
Copy link
Member

Current main branch holds on to dependencies of an erred task on a worker and implements a release mechanism once that erred task is released

I think that maybe historically the client still reached out to the worker for exception and traceback information? Today we seem to hold this information on the scheduler in serialized form. Maybe that explains the odd structure in the code in main today? (my memory here is unreliable)

@mrocklin mrocklin merged commit dbb13ec into dask:main Jun 29, 2021
@fjetter
Copy link
Member Author

fjetter commented Jun 29, 2021

I think that maybe historically the client still reached out to the worker for exception and traceback information? Today we seem to hold this information on the scheduler in serialized form. Maybe that explains the odd structure in the code in main today? (my memory here is unreliable)

There may also be the possibility that the rerun tasks feature would work a bit better but I'm leaning towards reduced complexity in favour of "convenient error rerun for debuggin". Haven't checked if it even works that way, though.

@fjetter fjetter deleted the cleanup_release_key branch June 29, 2021 14:06
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.

2 participants