-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement bulk prefetching of datafile metadata, using batched GET re…
…quests (#498) * Implement bulk prefetching of datafile metadata, using batched GET requests * Simplify the use of validator dataclasses for representing GET request results * Ensure the keys used in the endpoint cache are hashable * Simplify the CacheKey class * Inline a class which isn't needed * Add initial tests for Overseer caching. Still need some work * Extract fixture to a common fixture location * Improve the overseer caching tests * Reinstate older dataclass for storing a GET response * Fix incorrect endpoint when prefetching datafiles * Ensure we use a valid key for prefetching datafiles (MyTardis requires a URI/ID instead of identifier string) * Enable optional (on-by-default) request caching in the MyTardis client * Restrict use of caching to GET requests * Set the requests_cache logging level to INFO by default * Fix logging of already-ingested datafile * Add more logging in the Overseer * Make the Overseer cache debug logging less verbose * Log the correct cache keys * Ensure we serialize directory the same way in both Datafile and IngestedDatafile * Don't cache response data with no objects * Remove caching of smaller response data in the Overseer (instead rely on use requests-cache in MyTardis client). Now we only use the Overseer caching for the prefetch data. * Add a log call * Avoid caching responses from datafile GET requests, as we don't use them and they add a lot of data to the cache * Don't log cache exclusions by default * Merge objects into the Overseer cache if there's a key collision, instead of raising an error. Also fix a logging inefficiency. * Log a warning if there's a cache key collision
- Loading branch information
1 parent
c74606d
commit 4bf7635
Showing
17 changed files
with
626 additions
and
74 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
Oops, something went wrong.