use of com.hubspot.singularity.SingularityCreateResult in project Singularity by HubSpot.
the class SingularityMesosFrameworkMessageHandler method handleMessage.
public void handleMessage(Protos.ExecutorID executorId, Protos.AgentID slaveId, byte[] data) {
SingularityTaskShellCommandUpdate shellUpdate = null;
try {
shellUpdate = commandUpdateTranscoder.fromBytes(data);
SingularityCreateResult saved = taskManager.saveTaskShellCommandUpdate(shellUpdate);
LOG.debug("Saved {} with result {}", shellUpdate, saved);
} catch (SingularityTranscoderException ste) {
LOG.warn("Framework message {} not a commandUpdate", new String(data, UTF_8));
} catch (Exception e) {
LOG.error("While processing framework message {}", shellUpdate, e);
}
}
Aggregations