feat: add worker execution backend boundary

This commit is contained in:
2026-06-28 04:33:01 +09:00
parent 9929d1c704
commit 2d59717384
8 changed files with 877 additions and 30 deletions
+16
View File
@@ -1,3 +1,4 @@
use crate::execution::WorkerExecutionResult;
use crate::identity::{RuntimeId, WorkerId};
use std::path::PathBuf;
@@ -28,6 +29,21 @@ pub enum RuntimeError {
worker_id: WorkerId,
},
#[error("worker {worker_id} has no execution backend: {message}")]
WorkerExecutionUnavailable {
worker_id: WorkerId,
message: String,
},
#[error("worker {worker_id} execution {operation:?} returned {outcome:?}: {message}")]
WorkerExecutionRejected {
worker_id: WorkerId,
operation: crate::execution::WorkerExecutionOperation,
outcome: crate::execution::WorkerExecutionOutcome,
message: String,
result: WorkerExecutionResult,
},
#[error("limit {requested} exceeds maximum {max}")]
LimitTooLarge { requested: usize, max: usize },