refactor on sync process to block the worker the minimum possible time