-
-
Notifications
You must be signed in to change notification settings - Fork 718
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
Add C APIs for transition_*
functions
#4650
Closed
Closed
Changes from 2 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
9ddf362
Add C APIs for all `transition_*` functions
jakirkham 52450c1
Drop `**kwargs` from `transition_*`
jakirkham 2f077b9
Extract `status` in `_transition`
jakirkham aedd565
Extract `thread` in `_transition`
jakirkham 9f554ee
Extract `metadata` in `_transition`
jakirkham dc40037
Extract `worker` in `transition_processing_erred`
jakirkham b6a67fe
Extract `startstops` in `transition_processing_erred`
jakirkham 333ec79
Extract `text` in `transition_processing_erred`
jakirkham 934996f
Move `transition_processing_erred` kwargs
jakirkham 015af69
Pass excess kwargs to plugins
jakirkham 85b729f
Skip extracting `worker` argument
jakirkham f2c3e34
Add `worker` arg to `transition_processing_erred`
jakirkham 5eeffde
Pass `startstops` through
jakirkham fea65f7
Set `startstops` only if the key is in data
jakirkham 4766207
`worker: str` in `transition_processing_memory`
jakirkham 6712923
Move other `assert`s under `self._validate`
jakirkham 45b5c94
Drop unneeded `worker` argument
jakirkham ab951c6
Pick up `text` in `transition_processing_erred`
jakirkham fbdf587
Pack arguments back into `kwargs`
jakirkham d15d82e
Revert "Pack arguments back into `kwargs`"
jakirkham 33fc4af
Keep passing `startstops` in error case
jakirkham 653f53d
Readd `worker` argument
jakirkham feb5285
Merge dask/main into jakirkham/cy_transitions
jakirkham 1d3025f
Grab `func` for `finish` case only if used
jakirkham 7ae22ad
Add & use `_transition_dispatch` function
jakirkham 1c55db6
Merge dask/main into jakirkham/cy_transitions
jakirkham 08ed07f
Merge dask/main into jakirkham/cy_transitions
jakirkham eec1849
Disable flake8 on Cython `intern` call
jakirkham 6c92b6c
Flatten dispatch table to cutdown on overhead
jakirkham 57a949b
Use `_` instead of `-` in `str`s
jakirkham 328d7fc
Merge dask/main into jakirkham/cy_transitions
jakirkham bb3e5cf
Merge dask/main into jakirkham/cy_transitions
jakirkham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 don't think this is a dealbreaker but that could be perceived as a breaking change, couldn't it? At least this is a subtle change in the required signature. So far we document this as
*args, **kwargs
, see https://distributed.dask.org/en/latest/plugins.html#distributed.diagnostics.plugin.SchedulerPlugin.transitionThere 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 don't think so. These are already passed as keyword arguments and we are continuing to pass them that way
That said, Idk if this is how things will shake out yet. Things are still changing here. IOW I'm not sure this is worth reviewing yet
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.
+1 to what John said. I think that this is a no-op if you consider the extraction of these from kwargs above.