refactor runQ

Signed-off-by: yayanyang <yayanyang@gmail.com>