Skip to content

Commit

Permalink
add note about where scheduler plugin gets constructed
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Jan 27, 2022
1 parent 0ad1fbd commit bbd48f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions distributed/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4527,6 +4527,7 @@ def register_scheduler_plugin(self, plugin, name=None, **kwargs):
"future release. Please add plugins by instance instead.",
category=FutureWarning,
)
# note: plugin is constructed in async def _register_scheduler_plugin
elif kwargs:
raise ValueError("kwargs provided but plugin is already an instance")

Expand Down

0 comments on commit bbd48f2

Please sign in to comment.