awswrangler.emr.get_step_state¶
- awswrangler.emr.get_step_state(cluster_id: str, step_id: str, boto3_session: Session | None = 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 (
Session
|None
) – The default boto3 session will be used if boto3_session isNone
.
- Return type:
str
- Returns:
State.
Examples
>>> import awswrangler as wr >>> state = wr.emr.get_step_state("cluster-id", "step-id")