-
Notifications
You must be signed in to change notification settings - Fork 27
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
🔨 Adding monitor to director-v2 #2411
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2411 +/- ##
========================================
+ Coverage 75.5% 76.0% +0.5%
========================================
Files 558 571 +13
Lines 20780 21498 +718
Branches 2010 2066 +56
========================================
+ Hits 15691 16356 +665
- Misses 4562 4592 +30
- Partials 527 550 +23
Flags with carried forward coverage won't be shown. Click here to find out more.
|
services/director-v2/tests/unit/test_modules_dynamic_sidecar_monitor.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.
let's be dynamic!!
...ces/director-v2/src/simcore_service_director_v2/models/schemas/dynamic_services/scheduler.py
Show resolved
Hide resolved
return cls(**params) | ||
|
||
class Config: | ||
extra = Extra.allow |
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.
why allow here?
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.
Because it is inheriting from DynamicSidecarServiceLabels
which is configured as Extra.forid
and is not able to merge extra arguments coming from other models via inheritance and additional properties.
services/director-v2/src/simcore_service_director_v2/models/schemas/dynamic_services/service.py
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/docker_states.py
Show resolved
Hide resolved
Settings introduced in PR #2411 fail to initialize when deployed in master environment * Disables dynamic sidecar settings * Fixes dynamic-services vs dynamic-sidecar settings * Adds test with envdevel * disables scheduler in client fixture
What do these changes do?
Brings in the monitor, a component used by the director-v2 to keep track of the status of the dynamic-sidecars and trigger events in reaction to status changes. Changes coming from #1887
Related issue/s
How to test
Checklist