assert num bsp tasks and max task attempts values.