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 }}
This repository has been archived by the owner on Dec 25, 2022. It is now read-only.
current_segment = int(datetime.utcnow().replace(second=0, microsecond=0).timestamp() + 10 * 60) # scan the minute that is 10 minutes away, not the one that is already progressing
count = 0
for page in client.get_paginator('query').paginate(
TableName=table_name,
ProjectionExpression='pk,sk',
KeyConditionExpression='pk = :s',
ExpressionAttributeValues={
':s': {
'N': str(current_segment)
}
}):
ids = []
for item in page.get('Items', []):
event = {k: deserializer.deserialize(v) for k, v in item.items()}