<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><br>
</p>
<p></p>
<div style="">
<div style="" tabindex="0" id="Item.MessageUniqueBody" class="_rp_N4 ms-font-weight-regular ms-font-color-neutralDark rpHighlightAllClass rpHighlightBodyClass">
<div>
<div dir="ltr"><span dir="ltr">
<div id="divtagdefaultwrapper" style="background-color:white;"><font face="Calibri,Arial,Helvetica,sans-serif" color="black" size="3"><span style="font-size:12pt;background-color:white;">
<div style="margin-top:0;margin-bottom:0;"><font face="Calibri,Arial,Helvetica,sans-serif" size="3">I recently ran a test job on Stampede that succeeded (that is, it deposited the expected output in my archive) but the process monitor included a job status
 'FAILED' , following after 'STAGING_JOB' (see my webhook's output below at 08:50:23). </font></div>
<div style="margin-top:0;margin-bottom:0;"><font face="Calibri,Arial,Helvetica,sans-serif" size="3"></font>'FAILED' as I understand it means the job itself failed, which is in line with the documentation at
<a href="http://agaveapi.co/documentation/tutorials/job-management-tutorial/" target="_blank" id="LPlnk66910">
<font face="Calibri,Arial,Helvetica,sans-serif" size="3">http://agaveapi.co/documentation/tutorials/job-management-tutorial/</font></a><font face="Calibri,Arial,Helvetica,sans-serif" size="3">  (Table 2, list of all possible job statuses);</font><br>
<font face="Calibri,Arial,Helvetica,sans-serif" size="3">
<div style="margin-top:0;margin-bottom:0;"><font face="Calibri,Arial,Helvetica,sans-serif" size="3"><span style="font-size:12pt;">hence I designed my code to act accordingly (stop waiting for output), but in this case that was not the correct action.
<br>
</span></font></div>
<div style="margin-top:0;margin-bottom:0;"><font face="Calibri,Arial,Helvetica,sans-serif" size="3"><span style="font-size:12pt;"><br>
</span></font></div>
<div style="margin-top:0;margin-bottom:0;"><font face="Calibri,Arial,Helvetica,sans-serif" size="3"><span style="font-size:12pt;">While I am grateful that the plucky API tried and tried again and finally succeeded
<img id="373971_custom|AAMkADc4MmQ5NGM0LTM4MjktNDZlOS04YTFiLWQ5YWI2Y2IwZmQwNgBGAAAAAAD%2B8geaHQUZR7sEOWmLLHf%2BBwAHC2esWPVSRZQJXyuti%2BsxAAAC2qr3AACWAWPs0H9wTKa5RsHHqySNAAGXZKboAAABEgAQACaE5bergLBFoy6YCv0Y7jc%3D" style="display: inline; max-width: 100%;" data-custom="AAMkADc4MmQ5NGM0LTM4MjktNDZlOS04YTFiLWQ5YWI2Y2IwZmQwNgBGAAAAAAD%2B8geaHQUZR7sEOWmLLHf%2BBwAHC2esWPVSRZQJXyuti%2BsxAAAC2qr3AACWAWPs0H9wTKa5RsHHqySNAAGXZKboAAABEgAQACaE5bergLBFoy6YCv0Y7jc%3D" alt="&#X1f60a" src="https://outlook.office.com/owa/service.svc/s/GetFileAttachment?id=AAMkADc4MmQ5NGM0LTM4MjktNDZlOS04YTFiLWQ5YWI2Y2IwZmQwNgBGAAAAAAD%2B8geaHQUZR7sEOWmLLHf%2BBwAHC2esWPVSRZQJXyuti%2BsxAAAC2qr3AACWAWPs0H9wTKa5RsHHqySNAAGXZKboAAABEgAQACaE5bergLBFoy6YCv0Y7jc%3D&X-OWA-CANARY=bSo7J92LvEa9NVkd-ZHfIGCpxzLYLNMY3_uTKoFMVk8ut4KFedEM03dnL7Lp544ixYRqTof06rw."> 
 , I wonder if the status codes need to be tweaked so they are more in line with their intended meaning?
<br>
More useful would be something like STAGING_FAILED or a global 'JOB_FAILED' so scripts could distinguish the two (one non-fatal to output, another fatal)<br>
</span></font></div>
<div style="margin-top:0;margin-bottom:0;"><font face="Calibri,Arial,Helvetica,sans-serif" size="3"><span style="font-size:12pt;"><br>
</span></font></div>
<div style="margin-top:0;margin-bottom:0;"><font face="Calibri,Arial,Helvetica,sans-serif" size="3"><span style="font-size:12pt;">Thanks,</span></font></div>
Jon Duvick<br>
</font></div>
<div style="margin-top:0;margin-bottom:0;"><font face="Calibri,Arial,Helvetica,sans-serif" size="3"><br>
P.S. <font face="Calibri,Arial,Helvetica,sans-serif" size="3"><span style="font-size:12pt;">[I also notice an 'ERROR' status in the output below that is not in the official list of job statuses.]</span></font><br>
<br>
</font></div>
<div style="margin-top:0;margin-bottom:0;"><font face="Calibri,Arial,Helvetica,sans-serif" size="3">SUBMITTED: 2016-02-03 08:50:01 | PENDING: 2016-02-03T09:50:01.205-06:00 |  | PROCESSING_INPUTS: 2016-02-03 08:50:04 | Attempt 1 to stage job inputs | PROCESSING_INPUTS:
 2016-02-03 08:50:04 | Identifying input files for staging | STAGING_INPUTS: 2016-02-03 08:50:06 | Copy in progress | STAGED: 2016-02-03 08:50:14 | Job inputs staged to execution system | SUBMITTING: 2016-02-03 08:50:19 | Preparing job for submission. | SUBMITTING:
 2016-02-03 08:50:20 | Attempt 1 to submit job | STAGING_JOB: 2016-02-03 08:50:20 | Attempt 1 to submit job | SUBMITTING: 2016-02-03 08:50:20 | Attempt 1 to submit job | SUBMITTING: 2016-02-03 08:50:20 | Attempt 1 to submit job | SUBMITTING: 2016-02-03 08:50:21
 | Attempt 1 to submit job | SUBMITTING: 2016-02-03 08:50:21 | Attempt 1 to submit job | SUBMITTING: 2016-02-03 08:50:22 | Attempt 1 to submit job | SUBMITTING: 2016-02-03 08:50:22 | Attempt 1 to submit job | SUBMITTING: 2016-02-03 08:50:23 | Attempt 1 to submit
 job | STAGING_JOB: 2016-02-03 08:50:23 | Attempt 1 to submit job | FAILED: 2016-02-03 08:50:23 | Attempt 1 to submit job | ERROR: : 2016-02-03 08:50:23 | QUEUED: 2016-02-03 08:50:39 | Attempt 1 to submit job | RUNNING: 2016-02-03 08:50:50 | HPC job successfully
 placed into normal queue as local job 6502390 | CLEANING_UP: 2016-02-03 08:50:59 | Job started running | ARCHIVING: 2016-02-03 08:51:03 | Beginning to archive output. | ARCHIVING: 2016-02-03 08:51:03 | Attempt 1 to archive job output | ARCHIVING: 2016-02-03
 08:51:05 | Attempt 1 to archive job output | ARCHIVING_FINISHED: 2016-02-03 08:51:21 | Attempt 1 to archive job output | FINISHED: 2016-02-03 08:51:22 | Job complete |</font></div>
</span></font></div>
</span></div>
</div>
</div>
</div>
<div id="Signature">
<div class="BodyFragment"><font size="2">
<div class="PlainText"></div>
</font></div>
</div>
</div>
</body>
</html>