MCPcopy Create free account
hub / github.com/aws/aws-cli / CLISessionDatabaseSweeper

Class CLISessionDatabaseSweeper

awscli/telemetry.py:184–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182
183
184class CLISessionDatabaseSweeper:
185 _DELETE_RECORDS = """
186 DELETE FROM session
187 WHERE timestamp < ?
188 """
189
190 def __init__(self, connection):
191 self._connection = connection
192
193 def sweep(self, timestamp):
194 try:
195 self._connection.execute(self._DELETE_RECORDS, (timestamp,))
196 except Exception:
197 # This is just a background cleanup task. No need to
198 # handle it or direct to stderr.
199 return
200
201
202class CLISessionGenerator:

Callers 2

session_sweeperFunction · 0.90

Calls

no outgoing calls

Tested by 1

session_sweeperFunction · 0.72