AWS
update_container_instances_state
Modify the status of an ACTIVE ECS container instance
Checks to make sure desired and running tasks counts are equal
Below are the details and signature of the activity Python module.
Type | probe |
Module | chaosaws.ecs.probes |
Name | are_all_desired_tasks_running |
Return | boolean |
Usage
JSON
{
"name": "are-all-desired-tasks-running",
"type": "probe",
"provider": {
"type": "python",
"module": "chaosaws.ecs.probes",
"func": "are_all_desired_tasks_running",
"arguments": {
"cluster": "",
"service": ""
}
}
}
YAML
name: are-all-desired-tasks-running
provider:
arguments:
cluster: ""
service: ""
func: are_all_desired_tasks_running
module: chaosaws.ecs.probes
type: python
type: probe
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
cluster | string | Yes | Cluster | Name of the target ECS cluster | |
service | string | Yes | Service | Name of the target service |
Signature
def are_all_desired_tasks_running(
cluster: str,
service: str,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> bool:
pass