Skip to content

Start ECS - allow for variable desiredCount #60

@dovregubben

Description

@dovregubben
SUMMARY

Currently, the ecs handler starts a fixed number of 1 tasks (desired count).
Yet, in many cases, a variable number of tasks needs to be started.

Proposal:
Add new environment variable (e.g. ECS_TASK_DESIRED_COUNT) which defaults to 1, but may be set excplicitly to any number > 1

ISSUE TYPE
  • Feature Idea
Additional context

function start (ecs_handlyer.py) passes desiredCount=1 to update_service()

...
def start(self, aws_tags: List[Dict]) -> None:
...
  self.ecs.update_service(
      cluster=cluster_name, service=service_name, desiredCount=1
  )
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions