Commit 7ae0a77f authored by Max's avatar Max
Browse files

Add one final log entry after job completion

parent c0754012
......@@ -917,6 +917,7 @@ public class JobAgent implements Runnable {
code = p.exitValue();
logger.log(Level.INFO, "JobWrapper has finished execution. Exit code: " + code);
logger.log(Level.INFO, "All done for job " + queueId + ". Final status: " + readWrapperStatus());
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");
......
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