use of edu.iu.dsc.tws.rsched.worker.WorkerManager in project twister2 by DSC-SPIDAL.
the class K8sWorkerStarter method startWorker.
/**
* start the Worker class specified in conf files
*/
public static boolean startWorker(IWorkerController workerController, IPersistentVolume pv) {
IWorker worker = JobUtils.initializeIWorker(job);
K8sVolatileVolume volatileVolume = null;
if (computeResource.getDiskGigaBytes() > 0) {
volatileVolume = new K8sVolatileVolume(jobID, workerID);
}
WorkerManager workerManager = new WorkerManager(config, job, workerController, pv, volatileVolume, worker);
return workerManager.execute();
}
Aggregations