try {
discoWorker.requestTask();
if (discoWorker.hasMapTask()) {
final DiscoMapFunction mapFunction = DiscoWorkerMain.<DiscoMapFunction> instantiateFunction(functionName);
final List<File> outputFiles = mapFunction.map(discoWorker.getMapInput(), discoWorker.getJobName(),
discoWorker.getWorkingDir(), slicedArgs);
discoWorker.reportOutputs(outputFiles);
}
// TODO: reduce phase is not supported because the dir:// URL scheme is unsupported in the input fetcher.