Fix the unexpect behavior in canceljob and retrievejob func, change port number