Search in sources :

Example 1 with WorkerManager

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();
}
Also used : WorkerManager(edu.iu.dsc.tws.rsched.worker.WorkerManager) IWorker(edu.iu.dsc.tws.api.resource.IWorker)

Aggregations

IWorker (edu.iu.dsc.tws.api.resource.IWorker)1 WorkerManager (edu.iu.dsc.tws.rsched.worker.WorkerManager)1