JobDetail
¶
Source code in docs_src/capo_batch/types/job_detail.py
array_properties
instance-attribute
¶
array_properties: NotRequired[ArrayPropertiesDetail]
The array properties of the job, if it's an array job.
attempts
instance-attribute
¶
attempts: NotRequired[AttemptDetails]
A list of job attempts that are associated with this job.
consumable_resource_properties
instance-attribute
¶
consumable_resource_properties: NotRequired[ConsumableResourceProperties]
Contains a list of consumable resources required by the job.
container
instance-attribute
¶
container: NotRequired[ContainerDetail]
An object that represents the details for the container that's associated with the job. If the details are for a multiple-container job, this object will be empty.
created_at
instance-attribute
¶
created_at: NotRequired[Long]
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. This is specifically 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
instance-attribute
¶
depends_on: NotRequired[JobDependencyList]
A list of job IDs that this job depends on.
ecs_properties
instance-attribute
¶
ecs_properties: NotRequired[EcsPropertiesDetail]
An object with properties that are specific to Amazon ECS-based jobs.
eks_attempts
instance-attribute
¶
eks_attempts: NotRequired[EksAttemptDetails]
A list of job attempts that are associated with this job.
eks_properties
instance-attribute
¶
eks_properties: NotRequired[EksPropertiesDetail]
An object with various properties that are specific to Amazon EKS based jobs.
is_cancelled
instance-attribute
¶
is_cancelled: NotRequired[Boolean]
Indicates whether the job is cancelled.
is_terminated
instance-attribute
¶
is_terminated: NotRequired[Boolean]
Indicates whether the job is terminated.
job_arn
instance-attribute
¶
job_arn: NotRequired[String]
The Amazon Resource Name (ARN) of the job.
job_definition
instance-attribute
¶
job_definition: NotRequired[String]
The Amazon Resource Name (ARN) of the job definition that this job uses.
job_queue
instance-attribute
¶
job_queue: NotRequired[String]
The Amazon Resource Name (ARN) of the job queue that the job is associated with.
node_details
instance-attribute
¶
node_details: NotRequired[NodeDetails]
An object that represents the details of a node that's associated with a multi-node parallel job.
node_properties
instance-attribute
¶
node_properties: NotRequired[NodeProperties]
An object that represents the node properties of a multi-node parallel job.
This isn't applicable to jobs that are running on Fargate resources.
parameters
instance-attribute
¶
parameters: NotRequired[ParametersMap]
Additional parameters that are passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.
platform_capabilities
instance-attribute
¶
platform_capabilities: NotRequired[PlatformCapabilityList]
The platform capabilities required by the job definition. If no value is specified, it defaults to EC2. Jobs run on Fargate resources specify FARGATE. Jobs run on Amazon ECS Managed Instances specify MANAGED_INSTANCES.
propagate_tags
instance-attribute
¶
propagate_tags: NotRequired[Boolean]
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 when the tasks are created. 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
instance-attribute
¶
retry_strategy: NotRequired[RetryStrategy]
The retry strategy to use for this job if an attempt fails.
scheduling_priority
instance-attribute
¶
scheduling_priority: NotRequired[Integer]
The scheduling policy of the job definition. This only affects jobs in job queues with a fair-share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.
share_identifier
instance-attribute
¶
share_identifier: NotRequired[String]
The share identifier for the job.
started_at
instance-attribute
¶
started_at: NotRequired[Long]
The Unix timestamp (in milliseconds) for when the job was started. More specifically, it's when the job transitioned from the STARTING state to the RUNNING state.
status
instance-attribute
¶
status: NotRequired[JobStatus]
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 Batch User Guide.
status_reason
instance-attribute
¶
status_reason: NotRequired[String]
A short, human-readable string to provide more details for the current status of the job.
-
CAPACITY:INSUFFICIENT_INSTANCE_CAPACITY- All compute environments have insufficient capacity to service the job. -
MISCONFIGURATION:COMPUTE_ENVIRONMENT_MAX_RESOURCE- All compute environments have amaxVcpusetting that is smaller than the job requirements. -
MISCONFIGURATION:JOB_RESOURCE_REQUIREMENT- All compute environments have no connected instances that meet the job requirements. -
MISCONFIGURATION:SERVICE_ROLE_PERMISSIONS- All compute environments have problems with the service role permissions.
stopped_at
instance-attribute
¶
stopped_at: NotRequired[Long]
The Unix timestamp (in milliseconds) for when the job was stopped. More specifically, it's when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED.
timeout
instance-attribute
¶
timeout: NotRequired[JobTimeout]
The timeout configuration for the job.