use checkArgument to replace checkStatus
add new class TaskRetryPlan