Skip to content

Commit

Permalink
support log_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Aug 2, 2024
1 parent 000ae59 commit a35c967
Show file tree
Hide file tree
Showing 10 changed files with 144 additions and 7 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Description: In computationally demanding analysis projects,
'clustermq' by Schubert (2019) <doi:10.1093/bioinformatics/btz284>),
and 'batchtools' by Lang, Bischl, and Surmann (2017).
<doi:10.21105/joss.00135>.
Version: 0.3.2.9003
Version: 0.3.2.9004
License: MIT + file LICENSE
URL: https://wlandau.github.io/crew.cluster/,
https://github.com/wlandau/crew.cluster
Expand Down Expand Up @@ -49,7 +49,7 @@ Authors@R: c(
Depends:
R (>= 4.0.0)
Imports:
crew (>= 0.9.5.9003),
crew (>= 0.9.5.9007),
ps,
lifecycle,
R6,
Expand Down
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# crew.cluster 0.3.2.9003 (development)
# crew.cluster 0.3.2.9004 (development)

* Add `slurm_memory_gigabytes_required` to set `--mem` in SLURM (#44, @multimeric).
* Add `r_arguments` to accept R command line arguments for workers.
* Support `log_resources` in controllers.

# crew.cluster 0.3.2

Expand Down
4 changes: 3 additions & 1 deletion R/crew_controller_lsf.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ crew_controller_lsf <- function(
seconds_wall = Inf,
seconds_exit = NULL,
retry_tasks = TRUE,
log_resources = NULL,
tasks_max = Inf,
tasks_timers = 0L,
reset_globals = TRUE,
Expand Down Expand Up @@ -77,7 +78,8 @@ crew_controller_lsf <- function(
tls_config = tls_config,
seconds_interval = seconds_interval,
seconds_timeout = seconds_timeout,
retry_tasks = retry_tasks
retry_tasks = retry_tasks,
log_resources = log_resources
)
launcher <- crew_launcher_lsf(
name = name,
Expand Down
4 changes: 3 additions & 1 deletion R/crew_controller_pbs.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ crew_controller_pbs <- function(
seconds_wall = Inf,
seconds_exit = NULL,
retry_tasks = TRUE,
log_resources = NULL,
tasks_max = Inf,
tasks_timers = 0L,
reset_globals = TRUE,
Expand Down Expand Up @@ -74,7 +75,8 @@ crew_controller_pbs <- function(
tls_config = tls_config,
seconds_interval = seconds_interval,
seconds_timeout = seconds_timeout,
retry_tasks = retry_tasks
retry_tasks = retry_tasks,
log_resources = log_resources
)
launcher <- crew_launcher_pbs(
name = name,
Expand Down
4 changes: 3 additions & 1 deletion R/crew_controller_sge.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ crew_controller_sge <- function(
seconds_wall = Inf,
seconds_exit = NULL,
retry_tasks = TRUE,
log_resources = NULL,
tasks_max = Inf,
tasks_timers = 0L,
reset_globals = TRUE,
Expand Down Expand Up @@ -76,7 +77,8 @@ crew_controller_sge <- function(
tls_config = tls_config,
seconds_interval = seconds_interval,
seconds_timeout = seconds_timeout,
retry_tasks = retry_tasks
retry_tasks = retry_tasks,
log_resources = log_resources
)
launcher <- crew_launcher_sge(
name = name,
Expand Down
4 changes: 3 additions & 1 deletion R/crew_controller_slurm.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ crew_controller_slurm <- function(
seconds_wall = Inf,
seconds_exit = NULL,
retry_tasks = TRUE,
log_resources = NULL,
tasks_max = Inf,
tasks_timers = 0L,
reset_globals = TRUE,
Expand Down Expand Up @@ -78,7 +79,8 @@ crew_controller_slurm <- function(
tls_config = tls_config,
seconds_interval = seconds_interval,
seconds_timeout = seconds_timeout,
retry_tasks = retry_tasks
retry_tasks = retry_tasks,
log_resources = log_resources
)
launcher <- crew_launcher_slurm(
name = name,
Expand Down
32 changes: 32 additions & 0 deletions man/crew_controller_lsf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions man/crew_controller_pbs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions man/crew_controller_sge.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions man/crew_controller_slurm.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a35c967

Please sign in to comment.