codenamestif opened a new pull request #15848: URL: https://github.com/apache/airflow/pull/15848
This PR adds support of support of capacity provider strategy for ECSOperator. The logic is based on [ECS.Client.run_task documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ecs.html#ECS.Client.run_task). Closes #8381 Note: There is a logic related to the `platform_version` that I find tricky: ``` if self.launch_type == 'FARGATE': run_opts['platformVersion'] = self.platform_version ``` As for me, the operator should pass every parameter that user provided to the `run_task`. And that should be responsibility of the user to think about which parameters and under which conditions are needed. But to be consistent with the logic, I also provide `platform_version` if `capacity_provider_strategy` is specified. `capacity_provider_strategy` can be used only with Fargate, so the platform version should be passed as well. But as we can see, picking the parameters introduces the complexity. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
