EMR / Client / set_keep_job_flow_alive_when_no_steps

set_keep_job_flow_alive_when_no_steps#

EMR.Client.set_keep_job_flow_alive_when_no_steps(**kwargs)#

You can use the SetKeepJobFlowAliveWhenNoSteps to configure a cluster (job flow) to terminate after the step execution, i.e., all your steps are executed. If you want a transient cluster that shuts down after the last of the current executing steps are completed, you can configure SetKeepJobFlowAliveWhenNoSteps to false. If you want a long running cluster, configure SetKeepJobFlowAliveWhenNoSteps to true.

For more information, see Managing Cluster Termination in the Amazon EMR Management Guide.

See also: AWS API Documentation

Request Syntax

response = client.set_keep_job_flow_alive_when_no_steps(
    JobFlowIds=[
        'string',
    ],
    KeepJobFlowAliveWhenNoSteps=True|False
)
Parameters:
  • JobFlowIds (list) –

    [REQUIRED]

    A list of strings that uniquely identify the clusters to protect. This identifier is returned by RunJobFlow and can also be obtained from DescribeJobFlows.

    • (string) –

  • KeepJobFlowAliveWhenNoSteps (boolean) –

    [REQUIRED]

    A Boolean that indicates whether to terminate the cluster after all steps are executed.

Returns:

None

Exceptions