Skip to content

Commit

Permalink
updated spice simplest
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Jun 18, 2024
1 parent 0b9499c commit 6a4511a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions spice_simplest/bin/slurm_workflow_report
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
# Repost on Slurm usage for this workflow.

export SACCT_FORMAT="user,jobname%40,jobid%12,reqmem,maxrss, state"

# Print column headers
sacct --user "${USER}" | head -n2

# grep CYLC_JOB_ID ${CYLC_WORKFLOW_RUN_DIR}/log/job/*/Nutmeg/NN/job.status

# Print data for each jobid, which we cull from WORKFLOW log/job
for JOBID in $(grep CYLC_JOB_ID ${CYLC_WORKFLOW_RUN_DIR}/log/job/*/Nutmeg/NN/job.status | awk -F '=' '{print $2}'); do
sacct -j "$JOBID" --noheader "${@}"
done
2 changes: 1 addition & 1 deletion spice_simplest/flow.cylc
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@


[[tell_me_what_resources_i_used]]
script = slurm_workflow_report --units=M
script = slurm_workflow_report --units=M

0 comments on commit 6a4511a

Please sign in to comment.