-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DB: return newest *complete* set of snapshots from `get_latest_snapsh…
…ots` When snapshot set creation takes extensive amount of time (tens of minutes) due to entity linkage, individual snapshots are being added gradually. But this means that `get_latest_snapshots` returns only subset of all entities. This commit fixes this situation by using older - but complete - set of snapshots. Workaround uses `#metadata` Mongo collection and checks number of complete worker jobs, so new parameter is added to `EntityDatabase` constructor.
- Loading branch information
Showing
3 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
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