-
Couldn't load subscription status.
- Fork 32
🎨 Adds missing features to generic_scheduler #8490
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
🎨 Adds missing features to generic_scheduler #8490
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 enhances the generic scheduler by adding missing features required for scheduler functionality. The changes focus on integrating schedule IDs into operation context, enabling event unregistration, and providing operation name lookup capabilities.
- Added
schedule_idas a reserved context key automatically provided during operation execution - Enhanced event management to support unregistering events by setting them to None
- Added functionality to retrieve operation names from schedule IDs
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
_models.py |
Defines reserved context keys enum and validation set |
_operation.py |
Adds validation to prevent steps from providing reserved context keys |
_core.py |
Implements schedule ID injection and operation name lookup functionality |
_event_after.py |
Enables event unregistration when to_start is None |
_event_after_registration.py |
Updates function signatures to accept None for operation unregistration |
__init__.py |
Exports new get_operation_name function |
| Test files | Comprehensive test coverage for all new features |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
...ynamic-scheduler/src/simcore_service_dynamic_scheduler/services/generic_scheduler/_models.py
Outdated
Show resolved
Hide resolved
services/dynamic-scheduler/tests/unit/services/generic_scheduler/test__operation.py
Outdated
Show resolved
Hide resolved
services/dynamic-scheduler/tests/unit/services/generic_scheduler/test__operation.py
Outdated
Show resolved
Hide resolved
...mic-scheduler/src/simcore_service_dynamic_scheduler/services/generic_scheduler/_operation.py
Outdated
Show resolved
Hide resolved
...mic-scheduler/src/simcore_service_dynamic_scheduler/services/generic_scheduler/_operation.py
Outdated
Show resolved
Hide resolved
services/dynamic-scheduler/tests/unit/services/generic_scheduler/test__operation.py
Outdated
Show resolved
Hide resolved
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
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
services/dynamic-scheduler/tests/unit/services/generic_scheduler/test_generic_scheduler.py
Show resolved
Hide resolved
services/dynamic-scheduler/tests/unit/services/generic_scheduler/test_generic_scheduler.py
Show resolved
Hide resolved
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## master #8490 +/- ##
===========================================
- Coverage 87.28% 68.14% -19.14%
===========================================
Files 1999 854 -1145
Lines 77654 37859 -39795
Branches 1333 175 -1158
===========================================
- Hits 67778 25800 -41978
- Misses 9477 12002 +2525
+ Partials 399 57 -342
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
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.
thx
.../dynamic-scheduler/src/simcore_service_dynamic_scheduler/services/generic_scheduler/_core.py
Outdated
Show resolved
Hide resolved
...c-scheduler/src/simcore_service_dynamic_scheduler/services/generic_scheduler/_event_after.py
Show resolved
Hide resolved
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.
👌
|



What do these changes do?
In order to write the scheduler there are some required missing features that have been added:
schedule_idis now part of the OperationContext and can be required both duringexecuteandrevert.Related issue/s
How to test
Dev-ops