get_job
(**kwargs)¶Retrieves the specified Amazon Braket job.
See also: AWS API Documentation
Request Syntax
response = client.get_job(
jobArn='string'
)
[REQUIRED]
The ARN of the job to retrieve.
{
'algorithmSpecification': {
'containerImage': {
'uri': 'string'
},
'scriptModeConfig': {
'compressionType': 'NONE'|'GZIP',
'entryPoint': 'string',
's3Uri': 'string'
}
},
'billableDuration': 123,
'checkpointConfig': {
'localPath': 'string',
's3Uri': 'string'
},
'createdAt': datetime(2015, 1, 1),
'deviceConfig': {
'device': 'string'
},
'endedAt': datetime(2015, 1, 1),
'events': [
{
'eventType': 'WAITING_FOR_PRIORITY'|'QUEUED_FOR_EXECUTION'|'STARTING_INSTANCE'|'DOWNLOADING_DATA'|'RUNNING'|'DEPRIORITIZED_DUE_TO_INACTIVITY'|'UPLOADING_RESULTS'|'COMPLETED'|'FAILED'|'MAX_RUNTIME_EXCEEDED'|'CANCELLED',
'message': 'string',
'timeOfEvent': datetime(2015, 1, 1)
},
],
'failureReason': 'string',
'hyperParameters': {
'string': 'string'
},
'inputDataConfig': [
{
'channelName': 'string',
'contentType': 'string',
'dataSource': {
's3DataSource': {
's3Uri': 'string'
}
}
},
],
'instanceConfig': {
'instanceCount': 123,
'instanceType': 'ml.m4.xlarge'|'ml.m4.2xlarge'|'ml.m4.4xlarge'|'ml.m4.10xlarge'|'ml.m4.16xlarge'|'ml.g4dn.xlarge'|'ml.g4dn.2xlarge'|'ml.g4dn.4xlarge'|'ml.g4dn.8xlarge'|'ml.g4dn.12xlarge'|'ml.g4dn.16xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.12xlarge'|'ml.m5.24xlarge'|'ml.c4.xlarge'|'ml.c4.2xlarge'|'ml.c4.4xlarge'|'ml.c4.8xlarge'|'ml.p2.xlarge'|'ml.p2.8xlarge'|'ml.p2.16xlarge'|'ml.p3.2xlarge'|'ml.p3.8xlarge'|'ml.p3.16xlarge'|'ml.p3dn.24xlarge'|'ml.p4d.24xlarge'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.18xlarge'|'ml.c5n.xlarge'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge',
'volumeSizeInGb': 123
},
'jobArn': 'string',
'jobName': 'string',
'outputDataConfig': {
'kmsKeyId': 'string',
's3Path': 'string'
},
'roleArn': 'string',
'startedAt': datetime(2015, 1, 1),
'status': 'QUEUED'|'RUNNING'|'COMPLETED'|'FAILED'|'CANCELLING'|'CANCELLED',
'stoppingCondition': {
'maxRuntimeInSeconds': 123
},
'tags': {
'string': 'string'
}
}
Response Structure
Definition of the Amazon Braket job created. Specifies the container image the job uses, information about the Python scripts used for entry and training, and the user-defined metrics used to evaluation the job.
The container image used to create an Amazon Braket job.
The URI locating the container image.
Configures the paths to the Python scripts used for entry and training.
The type of compression used by the Python scripts for an Amazon Braket job.
The path to the Python script that serves as the entry point for an Amazon Braket job.
The URI that specifies the S3 path to the Python script module that contains the training script used by an Amazon Braket job.
The billable time the Amazon Braket job used to complete.
Information about the output locations for job checkpoint data.
(Optional) The local directory where checkpoints are written. The default directory is /opt/braket/checkpoints/
.
Identifies the S3 path where you want Amazon Braket to store checkpoints. For example, s3://bucket-name/key-name-prefix
.
The date and time that the Amazon Braket job was created.
The quantum processing unit (QPU) or simulator used to run the Amazon Braket job.
The primary quantum processing unit (QPU) or simulator used to create and run an Amazon Braket job.
The date and time that the Amazon Braket job ended.
Details about the type and time events occurred related to the Amazon Braket job.
Details about the type and time events occurred related to the Amazon Braket job.
The type of event that occurred related to the Amazon Braket job.
A message describing the event that occurred related to the Amazon Braket job.
TThe type of event that occurred related to the Amazon Braket job.
A description of the reason why an Amazon Braket job failed, if it failed.
Algorithm-specific parameters used by an Amazon Braket job that influence the quality of the traiing job. The values are set with a string of JSON key:value pairs, where the key is the name of the hyperparameter and the value is the value of th hyperparameter.
A list of parameters that specify the name and type of input data and where it is located.
A list of parameters that specify the input channels, type of input data, and where it is located.
A named input source that an Amazon Braket job can consume.
The MIME type of the data.
The location of the channel data.
Information about the data stored in Amazon S3 used by the Amazon Braket job.
Depending on the value specified for the S3DataType
, identifies either a key name prefix or a manifest that locates the S3 data source.
The resource instances to use while running the hybrid job on Amazon Braket.
Configures the number of resource instances to use while running an Amazon Braket job on Amazon Braket. The default value is 1.
Configures the type resource instances to use while running an Amazon Braket hybrid job.
The size of the storage volume, in GB, that user wants to provision.
The ARN of the Amazon Braket job.
The name of the Amazon Braket job.
The path to the S3 location where job artifacts are stored and the encryption key used to store them there.
The AWS Key Management Service (AWS KMS) key that Amazon Braket uses to encrypt the job training artifacts at rest using Amazon S3 server-side encryption.
Identifies the S3 path where you want Amazon Braket to store the job training artifacts. For example, s3://bucket-name/key-name-prefix
.
The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can assume to perform tasks on behalf of a user. It can access user resources, run an Amazon Braket job container on behalf of user, and output resources to the s3 buckets of a user.
The date and time that the Amazon Braket job was started.
The status of the Amazon Braket job.
The user-defined criteria that specifies when to stop a job running.
The maximum length of time, in seconds, that an Amazon Braket job can run.
A tag object that consists of a key and an optional value, used to manage metadata for Amazon Braket resources.
Exceptions
Braket.Client.exceptions.ResourceNotFoundException
Braket.Client.exceptions.AccessDeniedException
Braket.Client.exceptions.ThrottlingException
Braket.Client.exceptions.InternalServiceException
Braket.Client.exceptions.ValidationException