feat: add worker execution backend boundary
This commit is contained in:
@@ -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 },
|
||||
|
||||
|
||||
Reference in New Issue
Block a user