Hongyi: add pending queue for scheduler connecton problem, bug fix
Hongyi: merge