You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dynamoDB result backend incorrect exception handling when table exists #6622
tries to create or get the table. In case the table exists and the role executing that code on AWS does not have the CreateTable permission, the raised exception is not the one expected by that particular line. Yet the table exists and the exception is raised because the code tries to create it while lacking permissions.
To reproduce:
celery 5.0.5
create the result backend table and give the following permissions to the role executing celery on that table:
changed the title [-]dynamoDB result backend tries to create tables while role does not permit[/-][+]dynamoDB result backend incorrect exception handling when table exists[/+]on Jan 30, 2021
* handle the check of the table existence with another boto3 call such as [`describe_table`](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Client.describe_table) and then fall-back into the table creation
* provide a configuration that, when indicated, assumes the existence of the table
* handle that exception differently
I am no expert on dynamo DB. But if you can come with a change request as your proposed possible solutions we could verify & help to improve.
Activity
[-]dynamoDB result backend tries to create tables while role does not permit[/-][+]dynamoDB result backend incorrect exception handling when table exists[/+]auvipy commentedon Feb 1, 2021
I am no expert on dynamo DB. But if you can come with a change request as your proposed possible solutions we could verify & help to improve.
thedrow commentedon Apr 1, 2021
@galCohen88 can you try to fix this?
auvipy commentedon Aug 16, 2022
@lyajedi let's continue here
raffienficiaud commentedon Aug 31, 2022
Thanks!