-
Notifications
You must be signed in to change notification settings - Fork 5
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 DatasetSplitManager to reload latest cache. #527
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 tasks
gabegma
force-pushed
the
ggm/refactor-dm
branch
2 times, most recently
from
April 3, 2023 18:51
de74b94
to
3c40dd2
Compare
gabegma
force-pushed
the
ggm/improve-stability-start-up
branch
from
April 3, 2023 18:51
825ef39
to
bfa4299
Compare
gabegma
force-pushed
the
ggm/improve-stability-start-up
branch
3 times, most recently
from
April 5, 2023 18:18
a02a5bb
to
28a0a2d
Compare
gabegma
force-pushed
the
ggm/refactor-dm
branch
2 times, most recently
from
April 5, 2023 19:12
4402ef6
to
5f81471
Compare
gabegma
force-pushed
the
ggm/improve-stability-start-up
branch
from
April 7, 2023 21:49
4bba833
to
c28c839
Compare
gabegma
force-pushed
the
ggm/refactor-dm
branch
2 times, most recently
from
April 9, 2023 00:45
750cca7
to
a93803f
Compare
gabegma
force-pushed
the
ggm/refactor-dm
branch
2 times, most recently
from
April 13, 2023 20:41
4d33219
to
69b7949
Compare
JosephMarinier
changed the base branch from
main
to
ggm/fix-startup-dependencies
April 14, 2023 17:19
gabegma
force-pushed
the
ggm/fix-startup-dependencies
branch
from
April 17, 2023 19:00
0a8ed66
to
a9e900f
Compare
gabegma
force-pushed
the
ggm/refactor-dm
branch
from
April 17, 2023 21:34
69b7949
to
99178a8
Compare
- Define `get_time_from_file_name()` instead of duplicating the `.split("_")[-1][:-6]` logic. - Use `except StopIteration` on `cache_file = next(...)` instead of passing a default value to `cache_file = next(..., None)` and then checking for `if not cache_file:`.
gabegma
commented
Apr 18, 2023
Co-authored-by: Joseph Marinier <joseph.marinier@servicenow.com>
JosephMarinier
approved these changes
Apr 18, 2023
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.
Cool cool cool! 👍
Thank you for the quick review today and all of your contributions!! |
gabegma
added a commit
that referenced
this pull request
Apr 19, 2023
* Add pid to logs to help debugging * Modify DM so it always load the latest cache * Clean up `load_latest_cache()` - Define `get_time_from_file_name()` instead of duplicating the `.split("_")[-1][:-6]` logic. - Use `except StopIteration` on `cache_file = next(...)` instead of passing a default value to `cache_file = next(..., None)` and then checking for `if not cache_file:`. * Apply suggestions from code review Co-authored-by: Joseph Marinier <joseph.marinier@servicenow.com> --------- Co-authored-by: joseph.marinier <joseph.marinier@servicenow.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Part of #521
Description:
mod.get_dataset_split()
first (or other dm methods which call it), for the DM to check if the dataset saved in memory is up-to-date. If they call some other methods before, I foresee it could cause an issue, but perhaps not? I haven't seen any issues with the tests not when starting the app though.Checklist:
You should check all boxes before the PR is ready. If a box does not apply, check it to acknowledge it.
ran
pre-commit run --all-files
at the end.our users.
README
files and our wiki for any big design decisions, if relevant.