Skip to content

Commit

Permalink
Merge pull request #88 from Moritz921/master
Browse files Browse the repository at this point in the history
Update PBS_generic scheduler for Parameter Estimator
  • Loading branch information
anaegel authored Jun 5, 2024
2 parents 63eeb21 + af23782 commit d01e1c8
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions scripts/shell/schedulers/pbs-generic
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,23 @@ function UJS_GetOptions
function UJS_Info
{
echo "Using $UGSUBMIT_TYPE"
echo "qstat -u $USER -r"
qstat -u $USER
echo "qstat -u $USER"

(
echo "JOBID Username Queue Jobname SessID Elap-NDS TSK Memory Time Status Time"
# grep: get only jobs scheduled with ugsubmit
qstat -u $USER | grep -E "job\.[0-9]+\.[0-9]+ *" | awk '
BEGIN { OFS = "\t" }
{
status = $10
if (status == "R") {
status = "RUNNING"
} else if (status == "Q") {
status = "PENDING"
}
print $1, $2, $3, $4, $5, $6, $7, $8, $9, status, $11
}' # change status to RUNNING or PENDING
) | column -t # format output as table
}


Expand Down

0 comments on commit d01e1c8

Please sign in to comment.