def getAllJobIds()

in src/timetriggerSNS/app.py [0:0]


def getAllJobIds(table_name):
  
    table = dynamodb.Table(table_name)
    #first request
    response = table.scan()
    items = response['Items']
    
    try:
        #contiunue requesting until pages exists
        while 'LastEvaluatedKey' in response:
            #print(response['LastEvaluatedKey'])
            response = table.scan(ExclusiveStartKey=response['LastEvaluatedKey'])
            items.extend(response['Items'])
    except ClientError as e:
        print(e.response['Error']['Message'])

    return items