Skip to content

Add PBS error handling and detection #24

@Sonictherocketman

Description

@Sonictherocketman

When a PBS Bash job fails it typically does not output an error. Wrapping the PBS commands with a basic error checking, and job completion confirmation would allow the pipeline to check for actual completion.

# Sample bash job
OUT="/tmp/metapipe.{job_id}.complete"
ERR="/tmp/metapipe.{job_id}.error"

set -e
touch $OUT
touch $ERR

# Do something with the error codes from this job
{the actual bash command for that job} 2>>$ERR

#  Check $ERR and $OUT for completion.
function ErrorHandler() {
    # Report back to the queue.
}

Using the PBS documentation

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions