refactory to merge TaskRetryPlan and TaskRepeatPlan