JobTimeoutProperty Struct
An object that represents a job timeout configuration.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const jobTimeoutProperty: batch.CfnJobDefinition.JobTimeoutProperty = {
attemptDurationSeconds: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_batch as batch
job_timeout_property = batch.CfnJobDefinition.JobTimeoutProperty(
attempt_duration_seconds=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.batch.*;
JobTimeoutProperty jobTimeoutProperty = JobTimeoutProperty.builder()
.attemptDurationSeconds(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
var jobTimeoutProperty = new JobTimeoutProperty {
AttemptDurationSeconds = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
jobTimeoutProperty := &JobTimeoutProperty{
AttemptDurationSeconds: jsii.Number(123),
}
Properties
attemptDurationSecondsoptionalnumberattempt_duration_secondsoptionalint | floatattemptDurationSecondsoptionalNumberAttemptDurationSecondsoptionaldoubleAttemptDurationSecondsoptional*float64 #The job timeout time (in seconds) that's measured from the job attempt's `startedAt` timestamp.
notes
After this time passes, AWS 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.