Commit 9e9f276c authored by Max's avatar Max
Browse files

Two more traces

parent d56de051
......@@ -677,6 +677,7 @@ public class JobAgent implements Runnable {
code = p.exitValue();
logger.log(Level.INFO, "JobWrapper has finished execution. Exit code: " + code);
commander.q_api.putJobLog(queueId, "trace", "JobWrapper exit code: " + code);
if (code != 0)
logger.log(Level.WARNING, "Error encountered: see the JobWrapper logs in: " + env.getOrDefault("TMPDIR", "/tmp") + "/jalien-jobwrapper.log " + " for more details");
......
......@@ -273,6 +273,7 @@ public class JobWrapper implements MonitoringObject, Runnable {
}
catch (final Exception e) {
logger.log(Level.SEVERE, "Unable to handle job" + e);
commander.q_api.putJobLog(queueId, "trace", "ERROR: Unable to handle job: " + e);
return -1;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment