Skip to main content

TaskRecord

Struct TaskRecord 

Source
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§

Trait Implementations§

Source§

impl Clone for TaskRecord

Source§

fn clone(&self) -> TaskRecord

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TaskRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,