8000 failedTasks missing from ECS describe_services response · Issue #8948 · getmoto/moto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
failedTasks missing from ECS describe_services response #8948
Open
@mihaiblidaru

Description

@mihaiblidaru

When calling ecs_client.describe_services function, the response is missing the entry failedTasks (among other things) in the deployments list

Moto response
Image

AWS always returns a value, even if it's 0

Image

I would like to add failedTasks to the response, either always 0, or using an environment variable (something like MOTO_ECS_SERVICE_FAILED_TASKS )

moto/moto/ecs/models.py

Lines 582 to 594 in 83e5cbe

self.deployments = [
{
"createdAt": datetime.now(timezone.utc),
"desiredCount": self.desired_count,
"id": f"ecs-svc/{mock_random.randint(0, 32**12)}",
"launchType": self.launch_type,
"pendingCount": self.pending_count,
"runningCount": ecs_running_count,
"status": "PRIMARY",
"taskDefinition": self.task_definition,
"updatedAt": datetime.now(timezone.utc),
}
]

If you are ok with this proposed change i will submit a pull request

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0