<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>Job ID 4129804084715908635-ee4acae9fffff7a7-0001-007</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Jon<br>
</p>
<p><br>
</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Matthew Vaughn <vaughn@tacc.utexas.edu><br>
<b>Sent:</b> Wednesday, February 03, 2016 2:46 PM<br>
<b>To:</b> Duvick, Jonathan P [GDCBS]<br>
<b>Cc:</b> api-dev@maillist.cyverse.org<br>
<b>Subject:</b> Re: [api-dev] Agave Job Status Codes</font>
<div> </div>
</div>
<div>This is great feedback. Can you tell me the job ID please? I’m trying to look at some other logs as part of writing an improvement request ticket to the Agave team. 
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Feb 3, 2016, at 2:29 PM, Duvick, Jonathan P [GDCBS] <<a href="mailto:jduvick@iastate.edu" class="">jduvick@iastate.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" class="" style="font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-size:12pt; background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="">
<div tabindex="0" id="Item.MessageUniqueBody" class="ms-font-color-neutralDark ms-font-weight-regular rpHighlightBodyClass rpHighlightAllClass _rp_N4">
<div class="">
<div dir="ltr" class=""><span dir="ltr" class="">
<div id="divtagdefaultwrapper" class="" style="background-color:white"><font class="" face="Calibri,Arial,Helvetica,sans-serif" size="3"><span class="" style="font-size:12pt; background-color:white">
<div class="" style="margin-top:0px; margin-bottom:0px"><font class="" face="Calibri,Arial,Helvetica,sans-serif" size="3"><br class="Apple-interchange-newline">
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 class="" style="margin-top:0px; margin-bottom:0px"><font class="" 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<span class="Apple-converted-space"> </span><a href="http://agaveapi.co/documentation/tutorials/job-management-tutorial/" target="_blank" id="LPlnk66910" class=""><font class="" face="Calibri,Arial,Helvetica,sans-serif" size="3">http://agaveapi.co/documentation/tutorials/job-management-tutorial/</font></a><font class="" face="Calibri,Arial,Helvetica,sans-serif" size="3"> 
 (Table 2, list of all possible job statuses);</font><br class="">
<font class="" face="Calibri,Arial,Helvetica,sans-serif" size="3">
<div class="" style="margin-top:0px; margin-bottom:0px"><font class="" face="Calibri,Arial,Helvetica,sans-serif" size="3"><span class="" 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.<span class="Apple-converted-space"> </span><br class="">
</span></font></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><font class="" face="Calibri,Arial,Helvetica,sans-serif" size="3"><span class="" style="font-size:12pt"><br class="">
</span></font></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><font class="" face="Calibri,Arial,Helvetica,sans-serif" size="3"><span class="" style="font-size:12pt">While I am grateful that the plucky API tried and tried again and finally succeeded<span class="Apple-converted-space"> </span><img id="373971_custom|AAMkADc4MmQ5NGM0LTM4MjktNDZlOS04YTFiLWQ5YWI2Y2IwZmQwNgBGAAAAAAD%2B8geaHQUZR7sEOWmLLHf%2BBwAHC2esWPVSRZQJXyuti%2BsxAAAC2qr3AACWAWPs0H9wTKa5RsHHqySNAAGXZKboAAABEgAQACaE5bergLBFoy6YCv0Y7jc%3D" alt="&#X1f60a" class="" style="display: inline; max-width: 100%; -moz-user-select: none;" 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?<span class="Apple-converted-space"> </span><br class="">
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 class="">
</span></font></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><font class="" face="Calibri,Arial,Helvetica,sans-serif" size="3"><span class="" style="font-size:12pt"><br class="">
</span></font></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><font class="" face="Calibri,Arial,Helvetica,sans-serif" size="3"><span class="" style="font-size:12pt">Thanks,</span></font></div>
Jon Duvick<br class="">
</font></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><font class="" face="Calibri,Arial,Helvetica,sans-serif" size="3"><br class="">
P.S.<span class="Apple-converted-space"> </span><font class="" face="Calibri,Arial,Helvetica,sans-serif" size="3"><span class="" 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 class="">
<br class="">
</font></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><font class="" 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" class="">
<div class="BodyFragment"><font class="" size="2">
<div class="PlainText"></div>
</font></div>
</div>
</div>
<span class="" style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">api-dev
 Mailing List:<span class="Apple-converted-space"> </span></span><a href="mailto:api-dev@maillist.cyverse.org" class="" style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">api-dev@maillist.cyverse.org</a><br class="" style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">List
 Info and Archives:<span class="Apple-converted-space"> </span></span><a href="http://maillist.cyverse.org/mailman/listinfo/api-dev" class="" style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">http://maillist.cyverse.org/mailman/listinfo/api-dev</a><br class="" style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">One-click
 Unsubscribe:<span class="Apple-converted-space"> </span></span><a href="http://maillist.cyverse.org/mailman/options/api-dev/vaughn%40tacc.utexas.edu?unsub=1&unsubconfirm=1" class="" style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">http://maillist.cyverse.org/mailman/options/api-dev/vaughn%40tacc.utexas.edu?unsub=1&unsubconfirm=1</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</body>
</html>