pub struct TesBackend { /* private fields */ }Expand description
Represents the Task Execution Service (TES) backend.
Implementations§
Source§impl TesBackend
impl TesBackend
Sourcepub async fn new(task: &TaskConfig, config: &TesBackendConfig) -> Result<Self>
pub async fn new(task: &TaskConfig, config: &TesBackendConfig) -> Result<Self>
Constructs a new TES task execution backend with the given configuration.
Trait Implementations§
Source§impl TaskExecutionBackend for TesBackend
impl TaskExecutionBackend for TesBackend
Source§fn max_concurrency(&self) -> u64
fn max_concurrency(&self) -> u64
Gets the maximum concurrent tasks supported by the backend.
Source§fn constraints(
&self,
requirements: &HashMap<String, Value>,
hints: &HashMap<String, Value>,
) -> Result<TaskExecutionConstraints>
fn constraints( &self, requirements: &HashMap<String, Value>, hints: &HashMap<String, Value>, ) -> Result<TaskExecutionConstraints>
Gets the execution constraints given a task’s requirements and hints. Read more
Source§fn guest_work_dir(&self) -> Option<&Path>
fn guest_work_dir(&self) -> Option<&Path>
Gets the guest path the task working directory (e.g.
/mnt/work). Read moreSource§fn localize_inputs<'a, 'b, 'c, 'd>(
&'a self,
_: &'b HttpDownloader,
inputs: &'c mut [Input],
) -> BoxFuture<'d, Result<()>>where
Self: 'd,
'a: 'd,
'b: 'd,
'c: 'd,
fn localize_inputs<'a, 'b, 'c, 'd>(
&'a self,
_: &'b HttpDownloader,
inputs: &'c mut [Input],
) -> BoxFuture<'d, Result<()>>where
Self: 'd,
'a: 'd,
'b: 'd,
'c: 'd,
Localizes the given set of inputs for the backend. Read more
Source§fn spawn(
&self,
request: TaskSpawnRequest,
token: CancellationToken,
) -> Result<TaskExecutionEvents>
fn spawn( &self, request: TaskSpawnRequest, token: CancellationToken, ) -> Result<TaskExecutionEvents>
Spawns a task with the execution backend. Read more
Auto Trait Implementations§
impl Freeze for TesBackend
impl !RefUnwindSafe for TesBackend
impl Send for TesBackend
impl Sync for TesBackend
impl Unpin for TesBackend
impl !UnwindSafe for TesBackend
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