fix(openapi): harden story 2.1 production lifecycle
This commit is contained in:
1 parent
2c94af6791
commit
bc03c33387
46 files changed
+2198
-276
No files matched your search
@@ -80,6 +80,15 @@ impl ArtifactStore {
|
||||
})
|
||||
}
|
||||
|
||||
/// Verifies that the pinned root is still the same private directory that
|
||||
/// was accepted at startup. This does not open data by pathname and is
|
||||
/// suitable for a process readiness probe.
|
||||
pub fn check_health(&self) -> Result<(), ArtifactError> {
|
||||
let root = self.root()?;
|
||||
let _lock = RootLock::shared(root)?;
|
||||
ensure_root_unchanged(root)
|
||||
}
|
||||
|
||||
/// Compatibility constructor. I/O returns the opening error fail-closed.
|
||||
pub fn new(root: impl AsRef<Path>) -> Self {
|
||||
Self {
|
||||
|
||||
Reference in new issue
Block a user