Fix AbstractTask#set_task_num in mysql