Skip to content

Commit

Permalink
Merge pull request #24 from A2-ai/add_job_name
Browse files Browse the repository at this point in the history
Add job name
  • Loading branch information
mduncans authored Nov 26, 2024
2 parents 1b11c17 + d0a0d97 commit 5605120
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: slurmtools
Title: slurm tooling
Version: 0.0.0.9004
Version: 0.0.0.9005
Authors@R: c(person("Devin", "Pastoor", , "[email protected]", role = c("aut", "cre")),
person("Jenna", "Elwing", email = "[email protected]", role = "aut"),
person("Matthew", "Smith", email = "[email protected]", role = "aut"))
Expand Down
4 changes: 3 additions & 1 deletion R/get-jobs.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ parse_job_to_row <- function(job) {
tibble::tibble(
job_id = job$job_id,
job_state = job_state,
job_name = job$name,
cpus = job$cpus$number,
partition = job$partition,
standard_input = job$standard_input,
Expand All @@ -55,6 +56,7 @@ parse_jobs_json <- function(.json) {
empty <- tibble::tibble(
job_id = "",
job_state = "",
job_name = "",
cpus = "",
partition = "",
standard_input = "",
Expand Down Expand Up @@ -105,7 +107,7 @@ get_slurm_jobs <- function(user = NULL){
)

res_df <- res_df %>%
dplyr::select("job_id", "partition", "user_name", "job_state", "time", dplyr::everything())
dplyr::select("job_id", "partition", "job_name", "user_name", "job_state", "time", "cpus", dplyr::everything())

if (!is.null(user)) {
df <- tryCatch(
Expand Down

0 comments on commit 5605120

Please sign in to comment.