pub struct TaskValue { /* private fields */ }
Expand description
Represents a value for task
variables in WDL 1.2.
Task values are cheap to clone.
Implementations§
Source§impl TaskValue
impl TaskValue
Sourcepub fn container(&self) -> Option<&Arc<String>>
pub fn container(&self) -> Option<&Arc<String>>
Gets the container in which the task is executing.
Sourcepub fn gpu(&self) -> &Array
pub fn gpu(&self) -> &Array
Gets the GPU allocations for the task.
An array with one specification per allocated GPU; the specification is execution engine-specific.
Sourcepub fn fpga(&self) -> &Array
pub fn fpga(&self) -> &Array
Gets the FPGA allocations for the task.
An array with one specification per allocated FPGA; the specification is execution engine-specific.
Sourcepub fn disks(&self) -> &Map
pub fn disks(&self) -> &Map
Gets the disk allocations for the task.
A map with one entry for each disk mount point.
The key is the mount point and the value is the initial amount of disk space allocated, in bytes.
Sourcepub fn attempt(&self) -> i64
pub fn attempt(&self) -> i64
Gets current task attempt count.
The value must be 0 the first time the task is executed and incremented by 1 each time the task is retried (if any).
Sourcepub fn end_time(&self) -> Option<i64>
pub fn end_time(&self) -> Option<i64>
Gets the time by which the task must be completed, as a Unix time stamp.
A value of None
indicates there is no deadline.
Sourcepub fn return_code(&self) -> Option<i64>
pub fn return_code(&self) -> Option<i64>
Gets the task’s return code.
Initially set to None
, but set after task execution completes.
Sourcepub fn parameter_meta(&self) -> &Object
pub fn parameter_meta(&self) -> &Object
Gets the tasks’s parameter_meta
section as an object.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskValue
impl RefUnwindSafe for TaskValue
impl Send for TaskValue
impl Sync for TaskValue
impl Unpin for TaskValue
impl UnwindSafe for TaskValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more