def update_task_run_status(self, taskid, status):
    conn = sqlite3.connect(self.dbname)
    cursor = conn.cursor()
    cursor.execute('UPDATE task_info SET optType={} WHERE taskid={}'.format(status, taskid))
    logger.info('更新taskid={}，设置optType={}，cursor.rowcount={}'.format(taskid, status, str(cursor.rowcount)))
    conn.commit()
    cursor.close()
    conn.close()
def update_task_run_status(self, taskid, status):
    conn = sqlite3.connect(self.dbname)
    cursor = conn.cursor()
    cursor.execute('UPDATE task_info SET optType={} WHERE taskid={}'.format(status, taskid))
    logger.info('更新taskid={}，设置optType={}，cursor.rowcount={}'.format(taskid, status, str(cursor.rowcount)))
    conn.commit()
    cursor.close()
    conn.close()