-
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
♻️ extending run_id with int_timestamp #4505
♻️ extending run_id with int_timestamp #4505
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4505 +/- ##
========================================
+ Coverage 83.8% 87.1% +3.3%
========================================
Files 1009 844 -165
Lines 43193 38670 -4523
Branches 997 482 -515
========================================
- Hits 36197 33719 -2478
+ Misses 6767 4837 -1930
+ Partials 229 114 -115
Flags with carried forward coverage won't be shown. Click here to find out more.
|
…arc-simcore-forked into pr-osparc-run-id-based-on-time
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.
👍
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.
Along the same lines as @matusdrobuliak66 said I am a bit concerned about the uniqueness of this run_id and would like to understand better where and how it is used. Please consider a scenario with multiple director-v2s
...rector-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/scheduler/_core/_events.py
Outdated
Show resolved
Hide resolved
...ces/director-v2/src/simcore_service_director_v2/models/schemas/dynamic_services/scheduler.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.
Are you ensuring backwards compatibility still?
…arc-simcore-forked into pr-osparc-run-id-based-on-time
Code Climate has analyzed commit da4bec8 and detected 0 issues on this pull request. View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed!
|
What do these changes do?
The run_id used for running dynamic services is not very useful since it does not encode any information that can be of help.
Changing it to also include int_timestamp string everywhere. This will allow us to more accurately track sort the data associated with each run. This is especially important since our file backup systems keep the original created and last change dates. So you cannot tell by looking at the parent folder which is the latest one. The time information regarding the creation of the volume needs to be tracked in the name.
NOTE: after changing the type from UUID to str, the changes are still retrocompatible with the old legacy data format for the state of the dynamic sidecar, in fact that one was not changed
Related issue/s
How to test
DevOps Checklist