pub struct TaskSpawnRequest { /* private fields */ }Expand description
Represents a request to spawn a task.
Implementations§
Source§impl TaskSpawnRequest
impl TaskSpawnRequest
Sourcepub fn new(
id: String,
info: TaskSpawnInfo,
attempt: u64,
attempt_dir: PathBuf,
task_eval_root: PathBuf,
temp_dir: PathBuf,
) -> Self
pub fn new( id: String, info: TaskSpawnInfo, attempt: u64, attempt_dir: PathBuf, task_eval_root: PathBuf, temp_dir: PathBuf, ) -> Self
Creates a new task spawn request.
Sourcepub fn requirements(&self) -> &HashMap<String, Value>
pub fn requirements(&self) -> &HashMap<String, Value>
Gets the requirements of the task.
Sourcepub fn transferer(&self) -> &Arc<dyn Transferer>
pub fn transferer(&self) -> &Arc<dyn Transferer>
Gets the transferer to use for uploading inputs.
Sourcepub fn attempt(&self) -> u64
pub fn attempt(&self) -> u64
Gets the attempt number for the task’s execution.
The attempt number starts at 0.
Sourcepub fn attempt_dir(&self) -> &Path
pub fn attempt_dir(&self) -> &Path
Gets the attempt directory for the task’s execution.
Sourcepub fn task_eval_root_dir(&self) -> &Path
pub fn task_eval_root_dir(&self) -> &Path
The root directory for the task’s evaluation.
Sourcepub fn wdl_command_host_path(&self) -> PathBuf
pub fn wdl_command_host_path(&self) -> PathBuf
The default host-side location of the script generated from the task
command.
Sourcepub fn wdl_work_dir_host_path(&self) -> PathBuf
pub fn wdl_work_dir_host_path(&self) -> PathBuf
The default host-side location of the task’s working directory.
Sourcepub fn wdl_stdout_host_path(&self) -> PathBuf
pub fn wdl_stdout_host_path(&self) -> PathBuf
The default host-side location where the command’s stdout will be
written.
Sourcepub fn wdl_stderr_host_path(&self) -> PathBuf
pub fn wdl_stderr_host_path(&self) -> PathBuf
The default host-side location where the command’s stderr will be
written.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskSpawnRequest
impl !RefUnwindSafe for TaskSpawnRequest
impl Send for TaskSpawnRequest
impl Sync for TaskSpawnRequest
impl Unpin for TaskSpawnRequest
impl !UnwindSafe for TaskSpawnRequest
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
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>
Converts
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>
Converts
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