-
Notifications
You must be signed in to change notification settings - Fork 32
🐛Autoscaling: fixes unknown passing type to dask-scheduler #8556
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
🐛Autoscaling: fixes unknown passing type to dask-scheduler #8556
Conversation
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.
Pull Request Overview
This PR fixes a bug where an incorrect type (_DaskClusterTasks TypedDict) was being passed to the dask-scheduler, causing type-related issues. The fix changes the return type from the custom _DaskClusterTasks TypedDict to a plain dict[str, Any] and removes the type-ignore comments that were masking the underlying issue.
Key Changes:
- Modified the return type of the inner
_list_on_schedulerfunction from_DaskClusterTaskstodict[str, Any] - Replaced TypedDict instantiation with a plain dictionary literal
- Removed type-ignore comments that were previously suppressing the type errors
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
…TISFoundation#8556)" This reverts commit 4d1cccd.



What do these changes do?
#8423 brought some refactoring and one of them passes a type defined in
autoscalingservice to the dask-scheduler. This is not allowed and fails. This PR fixes this.Related issue/s
How to test
Dev-ops