Delete aggregate runtime status projection
This commit is contained in:
parent
abf1d51350
commit
3eca33949a
6 changed files with 11 additions and 107 deletions
|
|
@ -76,10 +76,8 @@ async fn main() -> Result<()> {
|
|||
other => return Err(anyhow!("unknown preflight argument: {other}")),
|
||||
}
|
||||
}
|
||||
let status = epiphany_core::runtime_spine_status(&store)?;
|
||||
if !status.present {
|
||||
return Err(anyhow!("runtime spine is absent at {}", store.display()));
|
||||
}
|
||||
let identity = epiphany_core::runtime_identity(&store)?
|
||||
.ok_or_else(|| anyhow!("runtime spine is absent at {}", store.display()))?;
|
||||
let registered_document_types = epiphany_core::runtime_registered_document_types()?;
|
||||
let missing: Vec<String> = required_document_types
|
||||
.iter()
|
||||
|
|
@ -111,7 +109,7 @@ async fn main() -> Result<()> {
|
|||
"schemaCatalogSha256": schema_catalog_sha256,
|
||||
"preflightWitnessId": preflight_witness_id,
|
||||
"runtimeStore": store,
|
||||
"runtimeId": status.runtime_id,
|
||||
"runtimeId": identity.runtime_id,
|
||||
"requiredDocumentTypes": required_document_types,
|
||||
"registeredDocumentTypes": registered_document_types,
|
||||
"schemaPreflightPassed": true,
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ use epiphany_core::open_runtime_model_execution;
|
|||
use epiphany_core::put_runtime_reorient_worker_result;
|
||||
use epiphany_core::put_runtime_role_worker_result;
|
||||
use epiphany_core::put_runtime_tool_execution_intent;
|
||||
use epiphany_core::runtime_identity;
|
||||
use epiphany_core::runtime_spine_cache;
|
||||
use epiphany_core::runtime_spine_status;
|
||||
use epiphany_model_adapter::EpiphanyModelInputItem;
|
||||
use epiphany_model_adapter::EpiphanyModelReceipt;
|
||||
use epiphany_model_adapter::EpiphanyModelRequest;
|
||||
|
|
@ -876,8 +876,7 @@ pub fn fail_model_backed_worker_job(
|
|||
}
|
||||
|
||||
pub fn ensure_openai_runtime_ready(options: &EpiphanyOpenAiRuntimeOptions) -> Result<()> {
|
||||
let status = runtime_spine_status(&options.store_path)?;
|
||||
if status.present {
|
||||
if runtime_identity(&options.store_path)?.is_some() {
|
||||
return Ok(());
|
||||
}
|
||||
initialize_runtime_spine(
|
||||
|
|
|
|||
|
|
@ -680,7 +680,7 @@ mod tests {
|
|||
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>> {
|
||||
self.calls.push(stage.to_string());
|
||||
Box::pin(async move {
|
||||
if !epiphany_core::runtime_spine_status(store_path)?.present {
|
||||
if epiphany_core::runtime_identity(store_path)?.is_none() {
|
||||
epiphany_core::initialize_runtime_spine(
|
||||
store_path,
|
||||
epiphany_core::RuntimeSpineInitOptions {
|
||||
|
|
@ -752,7 +752,7 @@ mod tests {
|
|||
cultmesh_store: PathBuf,
|
||||
allowed_channel_ids: Vec<String>,
|
||||
) -> Result<PersonaModelExecutionPlan> {
|
||||
if !epiphany_core::runtime_spine_status(store)?.present {
|
||||
if epiphany_core::runtime_identity(store)?.is_none() {
|
||||
epiphany_core::initialize_runtime_spine(
|
||||
store,
|
||||
epiphany_core::RuntimeSpineInitOptions {
|
||||
|
|
|
|||
Reference in a new issue