digdag icon indicating copy to clipboard operation
digdag copied to clipboard

The way to find TaskDefinition in EcsCommandExecutor

Open yoyama opened this issue 5 years ago • 0 comments

EcsCommandExecutor supports two ways to get task definition. One is from TaskDefinitionArn and Others is from tag. Firstly it tries to find a task definition from the arn and if not found then check tag. Unfortunately AWS API does not support find by tag, so current implementation list all task definitions and check the tag one by one. It takes long time if there are many task definitions are defined. In addition, to check the tag, it call AWS API one by one. So too many API calls to AWS will happen.

yoyama avatar Nov 24 '20 08:11 yoyama