optimize the breakpoint resume, add the finished task to cfg