probeECS

are_all_desired_tasks_running

Checks to make sure desired and running tasks counts are equal

Activity as code

Below are the details and signature of the activity Python module.

Typeprobe
Modulechaosaws.ecs.probes
Nameare_all_desired_tasks_running
Returnboolean

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

NameTypeDefaultRequiredTitleDescription
clusterstringYesClusterName of the target ECS cluster
servicestringYesServiceName 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