Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-dev] How to report actual submission error?

All,

Set let say that I'm submitting a job to some system, such as TACC's Stampede. As as part of the submission it gets a error because one of the inputs is not specified. For example, here is a command line output of issuing an sbatch <script> and getting a resulting error, because the partition is not specified.

login4$ sbatch 20d36021-b898-405e-89fc-a8de08f57972managed_file_for_script
-----------------------------------------------------------------
              Welcome to the Stampede Supercomputer              
-----------------------------------------------------------------
--> Submission error: all jobs must have a queue name specified with "-p"
login4$

So today in PTP we can have stdout parser associated with <submit-batch>, and I can check for string matches such as "Submission error:" and throw a generic error message. For example,

            <stdout-parser delim="\n">
                <target ref="@jobId">
                    <match>
                        <_expression_ flags="DOTALL|UNIX_LINES">.*Submission error.*</_expression_>
                        <throw message="Job Submit Failed"/>
                    </match>
                </target>
            </stdout-parser>

However I also want it to report the actual submission error, that is, 'all jobs must have a queue name specified with "-p"'. Does anyone know how to do this? 

Bri

Back to the top