Skip to content

Conversation

@sanderegg
Copy link
Member

@sanderegg sanderegg commented Oct 24, 2025

What do these changes do?

#8423 brought some refactoring and one of them passes a type defined in autoscaling service to the dask-scheduler. This is not allowed and fails. This PR fixes this.

Related issue/s

How to test

Dev-ops

@sanderegg sanderegg added this to the Imparable milestone Oct 24, 2025
@sanderegg sanderegg self-assigned this Oct 24, 2025
@sanderegg sanderegg added t:maintenance Some planned maintenance work a:autoscaling autoscaling service in simcore's stack a:computational clusters labels Oct 24, 2025
@sanderegg sanderegg requested a review from Copilot October 24, 2025 20:03
Copy link
Contributor

Copilot AI left a 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_scheduler function from _DaskClusterTasks to dict[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.

@sanderegg sanderegg marked this pull request as ready for review October 24, 2025 20:06
@sonarqubecloud
Copy link

@sanderegg sanderegg merged commit 4d1cccd into ITISFoundation:master Oct 24, 2025
43 of 45 checks passed
@sanderegg sanderegg deleted the bugfix/dask-cannot-pass-type-defined-elsewhere branch October 24, 2025 20:14
@mergify
Copy link
Contributor

mergify bot commented Oct 24, 2025

🧪 CI Insights

Here's what we observed from your CI run for 31d1e52.

❌ Job Failures

Pipeline Job Health on master Retries 🔍 CI Insights 📄 Logs
CI integration-tests Healthy 0 View View
system-tests Broken 0 View View
unit-tests Healthy 0 View View

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:autoscaling autoscaling service in simcore's stack a:computational clusters t:maintenance Some planned maintenance work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant