Skip to content

Demote ensure_computing to function - #5153

Merged
fjetter merged 1 commit into
dask:mainfrom
fjetter:demote_ensure_computing_to_function
Aug 2, 2021
Merged

fjetter merged 1 commit into
dask:mainfrom
fjetter:demote_ensure_computing_to_function

Conversation

@fjetter

@fjetter fjetter commented Aug 2, 2021

Copy link
Copy Markdown
Member

Follow up to #5128

@GPUtester

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@mrocklin

mrocklin commented Aug 2, 2021

Copy link
Copy Markdown
Member

Oh wow. I didn't realize that we were no longer doing anything async in this method. +1

@fjetter

fjetter commented Aug 2, 2021

Copy link
Copy Markdown
Member Author

I didn't realize that we were no longer doing anything async in this method

the execute is scheduled as part of the transition and the deserialization stuff is part of the execute itself. that let's us deal with possible deserialization exceptions the same way as for an ordinary compute failure (regarding the state machine). that's the essence of #5128

FWIW I would like to get rid of this function entirely since I believe everything that needs to be done here can be done as part of a transition which should make the entire thing a bit more streamlined imo. Currently, it's still required for pausing so we'll need to keep it regardless of my preference :)

@fjetter
fjetter merged commit eaf05ac into dask:main Aug 2, 2021
@fjetter
fjetter deleted the demote_ensure_computing_to_function branch August 2, 2021 14:10
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.

3 participants