Skip to content

Commit

Permalink
Fargate with spot instances fails with InvalidParameterException #328 (
Browse files Browse the repository at this point in the history
#348)

* Fargate with spot instances fails with InvalidParameterException #328

* Fargate with spot instances fails with InvalidParameterException (#328)

* Fargate with spot instances fails with InvalidParameterException (#328)
  • Loading branch information
davidvhill committed May 12, 2022
1 parent a9d4c51 commit e5cbf93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dask_cloudprovider/aws/ecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,9 @@ async def _create_cluster(self):
self.cluster_name = self.cluster_name.format(uuid=str(uuid.uuid4())[:10])
async with self._client("ecs") as ecs:
response = await ecs.create_cluster(
clusterName=self.cluster_name, tags=dict_to_aws(self.tags)
clusterName=self.cluster_name,
tags=dict_to_aws(self.tags),
capacityProviders=["FARGATE", "FARGATE_SPOT"],
)
weakref.finalize(self, self.sync, self._delete_cluster)
return response["cluster"]["clusterArn"]
Expand Down

0 comments on commit e5cbf93

Please sign in to comment.