-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Our initial strategy for loading persisted operations was flawed, mainly because of trying to use the local filesystem as a state store, requiring it to be consistent immediately after loading from a remote, and trying to read from local file storage right after. This design was chosen in order to decouple local state from remote loading strategies, but this can be achieved in other ways. This PR rewrites the loading behavior to use just the internal state in memory, and a loading strategy to append to it. This removes the dependency on the local file system for persisting this state, and simplifies the interactions for loading persisted operations. Now, a single `loader` can be specified which currently are `local`, meaning files are read from the local file system. `gcp` meaning files are downloaded from a GCP bucket and loaded straight into the internal state, or `noop` meaning no files are loaded. It also updates a number of metrics as well as the accompanying documentation --------- Co-authored-by: ldebruijn <[email protected]>
- Loading branch information
Showing
15 changed files
with
483 additions
and
374 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
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.