EcsTaskStateSensor

Amazon

Polls the task state until it reaches a terminal state. Raises an AirflowException with the failure reason if a failed state is reached.

View on GitHub

Last Updated: Mar. 2, 2023

Access Instructions

Install the Amazon provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

clusterRequiredThe short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.
taskRequiredThe task ID or full ARN of the task to poll.
target_stateSuccess state to watch for. (Default: “ACTIVE”)
failure_statesFail if any of these states are reached before the Success State. (Default: “STOPPED”)

Documentation

Polls the task state until it reaches a terminal state. Raises an AirflowException with the failure reason if a failed state is reached.

See also

For more information on how to use this operator, take a look at the guide: AWS ECS Task State Sensor

Was this page helpful?