use of com.walmartlabs.concord.server.queueclient.message.ProcessRequest in project concord by walmartlabs.
the class Agent method take.
private JobRequest take(QueueClient queueClient) throws Exception {
Future<ProcessResponse> req = queueClient.request(new ProcessRequest(agentCfg.getCapabilities()));
ProcessResponse resp = req.get();
if (resp == null) {
return null;
}
Path workDir = IOUtils.createTempDir(agentCfg.getPayloadDir(), "workDir");
return JobRequest.from(resp, workDir);
}
Aggregations