pub struct TaskRecord {Show 38 fields
pub task_id: String,
pub handle_id: String,
pub status: TaskStatus,
pub execution: ExecutionSpec,
pub limits: ResourceLimits,
pub sandbox: SandboxPolicy,
pub metadata: BTreeMap<String, String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub started_at: Option<DateTime<Utc>>,
pub finished_at: Option<DateTime<Utc>>,
pub duration_ms: Option<u64>,
pub shim_pid: Option<u32>,
pub pid: Option<u32>,
pub pgid: Option<i32>,
pub exit_code: Option<i32>,
pub exit_signal: Option<i32>,
pub error_code: Option<ErrorCode>,
pub error: Option<RuntimeErrorInfo>,
pub usage: Option<ResourceUsage>,
pub task_dir: PathBuf,
pub workspace_dir: PathBuf,
pub request_path: PathBuf,
pub result_path: PathBuf,
pub stdout_path: PathBuf,
pub stderr_path: PathBuf,
pub script_path: Option<PathBuf>,
pub stdout_max_bytes: u64,
pub stderr_max_bytes: u64,
pub kill_requested: bool,
pub kill_requested_at: Option<DateTime<Utc>>,
pub timeout_triggered: bool,
pub result_json: Option<Value>,
pub execution_plan: Option<ExecutionPlan>,
pub control_context: Option<ControlContext>,
pub reservation: Option<TaskResourceReservation>,
pub reserved_at: Option<DateTime<Utc>>,
pub released_at: Option<DateTime<Utc>>,
}Fields§
§task_id: String§handle_id: String§status: TaskStatus§execution: ExecutionSpec§limits: ResourceLimits§sandbox: SandboxPolicy§metadata: BTreeMap<String, String>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§started_at: Option<DateTime<Utc>>§finished_at: Option<DateTime<Utc>>§duration_ms: Option<u64>§shim_pid: Option<u32>§pid: Option<u32>§pgid: Option<i32>§exit_code: Option<i32>§exit_signal: Option<i32>§error_code: Option<ErrorCode>§error: Option<RuntimeErrorInfo>§usage: Option<ResourceUsage>§task_dir: PathBuf§workspace_dir: PathBuf§request_path: PathBuf§result_path: PathBuf§stdout_path: PathBuf§stderr_path: PathBuf§script_path: Option<PathBuf>§stdout_max_bytes: u64§stderr_max_bytes: u64§kill_requested: bool§kill_requested_at: Option<DateTime<Utc>>§timeout_triggered: bool§result_json: Option<Value>§execution_plan: Option<ExecutionPlan>§control_context: Option<ControlContext>§reservation: Option<TaskResourceReservation>§reserved_at: Option<DateTime<Utc>>§released_at: Option<DateTime<Utc>>Implementations§
Source§impl TaskRecord
impl TaskRecord
pub fn has_active_reservation(&self) -> bool
Trait Implementations§
Source§impl Clone for TaskRecord
impl Clone for TaskRecord
Source§fn clone(&self) -> TaskRecord
fn clone(&self) -> TaskRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TaskRecord
impl RefUnwindSafe for TaskRecord
impl Send for TaskRecord
impl Sync for TaskRecord
impl Unpin for TaskRecord
impl UnsafeUnpin for TaskRecord
impl UnwindSafe for TaskRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more