Rework register task processor.
Signed-off-by: Yi Min Zhao <zyimin@cn.ibm.com>