Fix bugs

Updata ZooKeeper data in sync mode and reassign tasks in async mode.
Wait longer for other workers.