Skip to content

Commit

Permalink
Modify nersc_controller to avoid getting OOM killed
Browse files Browse the repository at this point in the history
  • Loading branch information
blinkdog committed Jan 11, 2024
1 parent 1d39a31 commit 790ee55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions lta.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"folders": [
{
"path": "."
}
]
}
3 changes: 2 additions & 1 deletion resources/nersc_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,9 @@ def get_active_jobs(context: Context) -> JsonObj:

# run the squeue command to determine our jobs currently running in the slurm queue
# squeue_path The path to the 'squeue' command
# --me Equivalent to --user=<my username>. (see only my jobs)
# --json Please give me the output in JSON format (easy to parse)
args = [squeue_path, "--json"]
args = [squeue_path, "--me", "--json"]
LOG.info(f"Running command: {args}")
completed_process = run(args, stdout=PIPE, stderr=PIPE)

Expand Down

0 comments on commit 790ee55

Please sign in to comment.