make an independent function for work_queue docker mode
fix a minor bug
Merge branch 'wq_container_v2' into wq_container