Skip to content

Commit

Permalink
Improve squeue_statistic_array.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberma committed Jan 26, 2025
1 parent 30af79d commit 64ba7ad
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions squeue_statistic_array.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/usr/bin/env bash

echo "Running: $(squeue --me --array --noheader -t R | wc -l)"
echo "Pending: $(squeue --me --array --noheader -t PD | wc -l)"
echo "Configuring: $(squeue --me --array --noheader -t CF | wc -l)"
echo "Total: $(squeue --me --array --noheader | wc -l)"
RUNNING=$(squeue --me --array --noheader -t R | wc -l)
PENDING=$(squeue --me --array --noheader -t PD | wc -l)
CONFING=$(squeue --me --array --noheader -t CF | wc -l)
TOTAL=$( squeue --me --array --noheader | wc -l)

echo "Running: $RUNNING"
echo "Pending: $PENDING"
echo "Configuring: $CONFING"
echo "Total: $TOTAL"

echo "$(date -Iseconds),$RUNNING,$PENDING,$CONFING,$TOTAL" >> squeue_statistic_array_progression.csv

0 comments on commit 64ba7ad

Please sign in to comment.