-
Notifications
You must be signed in to change notification settings - Fork 15
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
Refactor dataservice #548
Refactor dataservice #548
Conversation
0c08d8f
to
d184db0
Compare
c9fe53b
to
fa02c7b
Compare
fa02c7b
to
2199895
Compare
Extract long running ServiceManager tasks into their own objects: - RequiredDataChecksManager - TempDatasetsManager - DataProvisionManager `Count` synchronization type added to facilitate cross-task signaling.
- move main function to of file for readability - setup and inject subsystem dependencies - reintroduce init_{{subsystem}}_helper methods once on ServiceManager to private functions - explicitly fail when service does not use object store. this was previously a bug.
76c8401
to
b9bc835
Compare
@robertbartel, just rebased. |
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.
For the most part this looks good. There are a handful of changes I think are needed, and then a couple of things I bring up just in case more discussion will help.
while True: | ||
# Ensure that mark and sweep doesn't proceed while something is potentially to linking datasets | ||
while self._tracker.value > 0: | ||
await asyncio.sleep(10) |
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.
Should we encapsulate this in the ActiveOperationTracker class also?
Thanks for the reviews! Ill fix this up and have it ready for re-review in the morning. |
improve clarity of the utility of `ActiveOperationTracker` in doc strings and parameter names / instance variables.
7f856a8
to
d5d87d3
Compare
Just pushed up resolutions for the requested improvements. This is ready for re-review now, @robertbartel! |
Chris's requested changes have been made, as have mine, and I've separately approved.
Thanks, @robertbartel! |
dmod.dataservice
--0.8.2
Changes
dataservice
tasks into separate classes.