getJobRun method
Retrieves the metadata for a given job run. Job run history is accessible for 365 days for your workflow and job run.
May throw EntityNotFoundException.
May throw InternalServiceException.
May throw InvalidInputException.
May throw OperationTimeoutException.
Parameter jobName :
Name of the job definition being run.
Parameter runId :
The ID of the job run.
Parameter predecessorsIncluded :
True if a list of predecessor runs should be returned.
Implementation
Future<GetJobRunResponse> getJobRun({
required String jobName,
required String runId,
bool? predecessorsIncluded,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.GetJobRun'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'JobName': jobName,
'RunId': runId,
if (predecessorsIncluded != null)
'PredecessorsIncluded': predecessorsIncluded,
},
);
return GetJobRunResponse.fromJson(jsonResponse.body);
}