awswrangler.emr.get_step_state

awswrangler.emr.get_step_state(cluster_id: str, step_id: str, boto3_session: Optional[boto3.session.Session] = None)str

Get EMR step state.

Possible states: ‘PENDING’, ‘CANCEL_PENDING’, ‘RUNNING’, ‘COMPLETED’, ‘CANCELLED’, ‘FAILED’, ‘INTERRUPTED’

Parameters
  • cluster_id (str) – Cluster ID.

  • step_id (str) – Step ID.

  • boto3_session (boto3.Session(), optional) – Boto3 Session. The default boto3 session will be used if boto3_session receive None.

Returns

State.

Return type

str

Examples

>>> import awswrangler as wr
>>> state = wr.emr.get_step_state("cluster-id", "step-id")