Fix old task api usage (#67653)
Fix old task api usage (#67653)

- fix old task api usage sneaked back in to the build in rolling-upgrade-basic project
nknize/elasticsearch,GlenRSmith/elasticsearch,nknize/elasticsearch,GlenRSmith/elasticsearch,GlenRSmith/elasticsearch,GlenRSmith/elasticsearch,robin13/elasticsearch,nknize/elasticsearch,nknize/elasticsearch,robin13/elasticsearch,robin13/elasticsearch,GlenRSmith/elasticsearch,nknize/elasticsearch,robin13/elasticsearch,robin13/elasticsearch