def get_error_deleting_volumes(meta):
    error_deleting_volumes = []
    volumes_t = Table('volumes', meta, autoload=True)
    error_deleting_volumes_q = select(columns=[volumes_t.c.id]).where(and_((volumes_t.c.status == 'error_deleting'), (volumes_t.c.deleted == 0)))
    for i in error_deleting_volumes_q.execute():
        error_deleting_volumes.append(i[0])
    return error_deleting_volumes
def get_error_deleting_volumes(meta):
    error_deleting_volumes = []
    volumes_t = Table('volumes', meta, autoload=True)
    error_deleting_volumes_q = select(columns=[volumes_t.c.id]).where(and_((volumes_t.c.status == 'error_deleting'), (volumes_t.c.deleted == 0)))
    for i in error_deleting_volumes_q.execute():
        error_deleting_volumes.append(i[0])
    return error_deleting_volumes