Open NicWayand opened 4 years ago
I think @jacobtomlinson told me there is a bug there. As a workaround you can add skip_cleanup=True
, like:
cluster = FargateCluster(n_workers=1, image='rsignell/pangeo-worker:2020-01-23c',
skip_cleanup=True)
Thanks @rsignell-usgs, but I still get the ResourceAlreadyExistsException even with the skip clean up as True. (I tried a few times).
It sounds like there are two issues here:
A workaround in the meantime would be to set the cloudwatch_logs_group
kwarg to the name of your existing log group.
cluster = FargateCluster(n_workers=1, cloudwatch_logs_group="my_log_group")
When trying to spin up a new Fargate cluster following @rsignell-usgs 's example, I have to manually delete the log group in cloudwatch, or I get an error message:
ResourceAlreadyExistsException: An error occurred (ResourceAlreadyExistsException) when calling the CreateLogGroup operation: The specified log group already exists
My expected behavior is that it will clean up the log group.
Do I need to close out the cluster for this to happen?