DescribeJobFlows returns a list of job flows that match all of the supplied parameters. The parameters can include a list of job flow IDs, job flow states, and restrictions on job flow creation date and time.
Regardless of supplied parameters, only job flows created within the last two months are returned.
If no parameters are supplied, then job flows matching either of the following criteria are returned:
- Job flows created and completed in the last two weeks
- Job flows created within the last two months that are in one of the following states:
RUNNING
,WAITING
,SHUTTING_DOWN
,STARTING
Amazon Elastic MapReduce can return a maximum of 512 job flow descriptions.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Describe all job flows.
$emr = new AmazonEMR(); $response = $emr->describe_job_flows(); // Success? var_dump($response->isOK());Result:
bool(true)
Describe job flows from a specific date range.
$emr = new AmazonEMR(); $response = $emr->describe_job_flows(array( 'CreatedAfter' => 'last month', 'CreatedBefore' => 'yesterday', )); // Success? var_dump($response->isOK());Result:
bool(true)
Describe job flows from a specific date range.
$emr = new AmazonEMR(); $response = $emr->describe_job_flows(array( 'CreatedAfter' => '1 January 2010, 12:00am', 'CreatedBefore' => '28 February 2010, 5:42pm', )); // Success? var_dump($response->isOK());Result:
bool(true)
Describe all job flows with a given state.
$emr = new AmazonEMR(); $response = $emr->describe_job_flows(array( 'JobFlowStates' => array('RUNNING', 'WAITING') )); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/emr.class.php | Toggle source view (36 lines) | View on GitHub