CAPEDWARF-119 Make sure task retry limit is honored