-
Notifications
You must be signed in to change notification settings - Fork 4
Add PBS error handling and detection #24
Copy link
Copy link
Open
Labels
Description
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
Reactions are currently unavailable