logo
pub struct JobDetail {
Show 22 fields pub array_properties: Option<ArrayPropertiesDetail>, pub attempts: Option<Vec<AttemptDetail>>, pub container: Option<ContainerDetail>, pub created_at: Option<i64>, pub depends_on: Option<Vec<JobDependency>>, pub job_arn: Option<String>, pub job_definition: String, pub job_id: String, pub job_name: String, pub job_queue: String, pub node_details: Option<NodeDetails>, pub node_properties: Option<NodeProperties>, pub parameters: Option<HashMap<String, String>>, pub platform_capabilities: Option<Vec<String>>, pub propagate_tags: Option<bool>, pub retry_strategy: Option<RetryStrategy>, pub started_at: Option<i64>, pub status: String, pub status_reason: Option<String>, pub stopped_at: Option<i64>, pub tags: Option<HashMap<String, String>>, pub timeout: Option<JobTimeout>,
}
Expand description

An object representing an AWS Batch job.

Fields

array_properties: Option<ArrayPropertiesDetail>

The array properties of the job, if it is an array job.

attempts: Option<Vec<AttemptDetail>>

A list of job attempts associated with this job.

container: Option<ContainerDetail>

An object representing the details of the container that's associated with the job.

created_at: Option<i64>

The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED state (at the time SubmitJob was called). For array child jobs, this is when the child job was spawned by its parent and entered the PENDING state.

depends_on: Option<Vec<JobDependency>>

A list of job IDs that this job depends on.

job_arn: Option<String>

The Amazon Resource Name (ARN) of the job.

job_definition: String

The job definition that's used by this job.

job_id: String

The ID for the job.

job_name: String

The name of the job.

job_queue: String

The Amazon Resource Name (ARN) of the job queue that the job is associated with.

node_details: Option<NodeDetails>

An object representing the details of a node that's associated with a multi-node parallel job.

node_properties: Option<NodeProperties>

An object representing the node properties of a multi-node parallel job.

This isn't applicable to jobs running on Fargate resources.

parameters: Option<HashMap<String, String>>

Additional parameters passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.

platform_capabilities: Option<Vec<String>>

The platform capabilities required by the job definition. If no value is specified, it defaults to EC2. Jobs run on Fargate resources specify FARGATE.

propagate_tags: Option<bool>

Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the FAILED state.

retry_strategy: Option<RetryStrategy>

The retry strategy to use for this job if an attempt fails.

started_at: Option<i64>

The Unix timestamp (in milliseconds) for when the job was started (when the job transitioned from the STARTING state to the RUNNING state). This parameter isn't provided for child jobs of array jobs or multi-node parallel jobs.

status: String

The current status for the job.

If your jobs don't progress to STARTING, see Jobs Stuck in RUNNABLE Status in the troubleshooting section of the AWS Batch User Guide.

status_reason: Option<String>

A short, human-readable string to provide additional details about the current status of the job.

stopped_at: Option<i64>

The Unix timestamp (in milliseconds) for when the job was stopped (when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).

tags: Option<HashMap<String, String>>

The tags applied to the job.

timeout: Option<JobTimeout>

The timeout configuration for the job.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

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

Calls U::from(self).

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

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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