Skip to content

Commit

Permalink
Don't evaluate any SLURM-dependent R code for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Eagles committed Sep 28, 2023
1 parent 54dd436 commit 70adc29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/slurmjobs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ job_df <- job_info(partition = NULL)

The benefit to having this data in R, now, is to be able to trivially ask summarizing questions. First, "how much memory and how many CPUs am I currently using?" Knowing this answer can help ensure fair and civil use of shared computing resources, for example on a computing cluster.

```{r "job_info_total_resources"}
```{r "job_info_total_resources", eval = FALSE}
job_df |>
filter(partition == "shared") |>
summarize(
Expand All @@ -124,7 +124,7 @@ job_df |>

Another use case could be to get a quick idea of the maximum memory required among all running tasks in an array job, for example for a script where you'd like to tune the requested memory to be as low as necessary to complete all tasks. [TODO: really this use case makes more sense only for completed jobs]

```{r "job_info_max_memory"}
```{r "job_info_max_memory", eval = FALSE}
job_df |>
# Grab only array jobs
filter(!is.na(array_task_id)) |>
Expand Down

0 comments on commit 70adc29

Please sign in to comment.