-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add auto expiry for DynamoDB backend #5805
Commits on Oct 30, 2019
-
Add auto expiry for DynamoDB backend
This adds auto-expire support for the DynamoDB backend, via the DynamoDB Time to Live feature.
Sven Ulland committedOct 30, 2019 Configuration menu - View commit details
-
Copy full SHA for c703215 - Browse repository at this point
Copy the full SHA c703215View commit details -
Require boto3>=1.9.178 for DynamoDB TTL support
boto3 version 1.9.178 requires botocore>=1.12.178. botocore version 1.12.178 introduces support for the DynamoDB UpdateTimeToLive call. The UpdateTimeToLive call is used by the DynamoDB backend to enable TTL support on a newly created table.
Sven Ulland committedOct 30, 2019 Configuration menu - View commit details
-
Copy full SHA for ddf1f7c - Browse repository at this point
Copy the full SHA ddf1f7cView commit details
Commits on Nov 1, 2019
-
Separate TTL handling from table creation
Handle TTL enabling/disabling separately from the table get-or-create function. Improve handling of cases where the TTL is already set to the desired state. DynamoDB only allows a single TTL update action within a fairly long time window, so some problematic cases (changing the TTL attribute, enabling/disabling TTL when it was recently modified) will raise exceptions that have to be dealt with.
Sven Ulland committedNov 1, 2019 Configuration menu - View commit details
-
Copy full SHA for 5a61b13 - Browse repository at this point
Copy the full SHA 5a61b13View commit details -
If the boto3 TTL methods are not found, log an informative error. If the user wants to enable TTL, raise an exception; if TTL should be disabled, simply return.
Sven Ulland committedNov 1, 2019 Configuration menu - View commit details
-
Copy full SHA for 31c1bfd - Browse repository at this point
Copy the full SHA 31c1bfdView commit details -
- Handle exceptions by logging the error and re-raising - Log (level debug) when the desired TTL state is already in place
Sven Ulland committedNov 1, 2019 Configuration menu - View commit details
-
Copy full SHA for b5bf089 - Browse repository at this point
Copy the full SHA b5bf089View commit details
Commits on Nov 4, 2019
-
Add and use _has_ttl() convenience method
Additional changes: - Handle exceptions when calling boto3's describe_time_to_live() - Fix test cases for missing TTL methods
Sven Ulland committedNov 4, 2019 Configuration menu - View commit details
-
Copy full SHA for 455d55b - Browse repository at this point
Copy the full SHA 455d55bView commit details -
Update ttl_seconds documentation
Sven Ulland committedNov 4, 2019 Configuration menu - View commit details
-
Copy full SHA for 9d041e9 - Browse repository at this point
Copy the full SHA 9d041e9View commit details
Commits on Nov 11, 2019
-
Log invalid TTL; catch and raise ValueError
Sven Ulland committedNov 11, 2019 Configuration menu - View commit details
-
Copy full SHA for 224aefd - Browse repository at this point
Copy the full SHA 224aefdView commit details -
Separate method _get_table_ttl_description
Sven Ulland committedNov 11, 2019 Configuration menu - View commit details
-
Copy full SHA for 832bc5b - Browse repository at this point
Copy the full SHA 832bc5bView commit details
Commits on Nov 13, 2019
-
Separate ttl method validation function
Sven Ulland committedNov 13, 2019 Configuration menu - View commit details
-
Copy full SHA for b499e5a - Browse repository at this point
Copy the full SHA b499e5aView commit details -
Sven Ulland committed
Nov 13, 2019 Configuration menu - View commit details
-
Copy full SHA for e3dcfa2 - Browse repository at this point
Copy the full SHA e3dcfa2View commit details -
Sven Ulland committed
Nov 13, 2019 Configuration menu - View commit details
-
Copy full SHA for a46ed1a - Browse repository at this point
Copy the full SHA a46ed1aView commit details
Commits on Nov 25, 2019
-
Sven Ulland committed
Nov 25, 2019 Configuration menu - View commit details
-
Copy full SHA for b0c56a8 - Browse repository at this point
Copy the full SHA b0c56a8View commit details