MCPcopy
hub / github.com/celery/celery / _get_ttl_specification

Method _get_ttl_specification

celery/backends/dynamodb.py:279–287  ·  view source on GitHub ↗

Get the boto3 structure describing the DynamoDB TTL specification.

(self, ttl_attr_name)

Source from the content-addressed store, hash-verified

277 )
278
279 def _get_ttl_specification(self, ttl_attr_name):
280 """Get the boto3 structure describing the DynamoDB TTL specification."""
281 return {
282 'TableName': self.table_name,
283 'TimeToLiveSpecification': {
284 'Enabled': self._has_ttl(),
285 'AttributeName': ttl_attr_name
286 }
287 }
288
289 def _get_table_ttl_description(self):
290 # Get the current TTL description.

Callers 1

_set_table_ttlMethod · 0.95

Calls 1

_has_ttlMethod · 0.95

Tested by

no test coverage detected