def query_runtask(self):
    conn = sqlite3.connect(self.dbname)
    taskrows = []
    for row in conn.execute('SELECT DISTINCT * FROM task_info WHERE optType=3 OR optType=1 AND exeType=2 AND startIterationNumber<=iterationNum'):
        taskrows.append(row)
    conn.close()
    return taskrows
def query_runtask(self):
    conn = sqlite3.connect(self.dbname)
    taskrows = []
    for row in conn.execute('SELECT DISTINCT * FROM task_info WHERE optType=3 OR optType=1 AND exeType=2 AND startIterationNumber<=iterationNum'):
        taskrows.append(row)
    conn.close()
    return taskrows