fix the bug that not wait until the dual_ is updated in bactch_worker::preprocess_data