Struct aws_sdk_batch::types::JobTimeout
source · #[non_exhaustive]pub struct JobTimeout {
pub attempt_duration_seconds: Option<i32>,
}
Expand description
An object that represents a job timeout configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attempt_duration_seconds: Option<i32>
The job timeout time (in seconds) that's measured from the job attempt's startedAt
timestamp. After this time passes, Batch terminates your jobs if they aren't finished. The minimum value for the timeout is 60 seconds.
For array jobs, the timeout applies to the child jobs, not to the parent array job.
For multi-node parallel (MNP) jobs, the timeout applies to the whole job, not to the individual nodes.
Implementations§
source§impl JobTimeout
impl JobTimeout
sourcepub fn attempt_duration_seconds(&self) -> Option<i32>
pub fn attempt_duration_seconds(&self) -> Option<i32>
The job timeout time (in seconds) that's measured from the job attempt's startedAt
timestamp. After this time passes, Batch terminates your jobs if they aren't finished. The minimum value for the timeout is 60 seconds.
For array jobs, the timeout applies to the child jobs, not to the parent array job.
For multi-node parallel (MNP) jobs, the timeout applies to the whole job, not to the individual nodes.
source§impl JobTimeout
impl JobTimeout
sourcepub fn builder() -> JobTimeoutBuilder
pub fn builder() -> JobTimeoutBuilder
Creates a new builder-style object to manufacture JobTimeout
.
Trait Implementations§
source§impl Clone for JobTimeout
impl Clone for JobTimeout
source§fn clone(&self) -> JobTimeout
fn clone(&self) -> JobTimeout
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JobTimeout
impl Debug for JobTimeout
source§impl PartialEq for JobTimeout
impl PartialEq for JobTimeout
source§fn eq(&self, other: &JobTimeout) -> bool
fn eq(&self, other: &JobTimeout) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for JobTimeout
Auto Trait Implementations§
impl Freeze for JobTimeout
impl RefUnwindSafe for JobTimeout
impl Send for JobTimeout
impl Sync for JobTimeout
impl Unpin for JobTimeout
impl UnwindSafe for JobTimeout
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> 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