Skip to content

Commit

Permalink
retry_tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Jul 10, 2024
1 parent 1adfceb commit 5f43156
Show file tree
Hide file tree
Showing 13 changed files with 55 additions and 8 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.1
Version: 0.3.2
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.8.0),
crew (>= 0.9.5),
ps,
lifecycle,
R6,
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# crew.cluster 0.3.2

* Add `retry_tasks` argument.

# crew.cluster 0.3.1

* Add a SLURM monitor (#32, @brendanf).
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 @@ -37,6 +37,7 @@ crew_controller_lsf <- function(
seconds_idle = Inf,
seconds_wall = Inf,
seconds_exit = NULL,
retry_tasks = TRUE,
tasks_max = Inf,
tasks_timers = 0L,
reset_globals = TRUE,
Expand Down Expand Up @@ -74,7 +75,8 @@ crew_controller_lsf <- function(
tls_enable = tls_enable,
tls_config = tls_config,
seconds_interval = seconds_interval,
seconds_timeout = seconds_timeout
seconds_timeout = seconds_timeout,
retry_tasks = retry_tasks
)
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 @@ -33,6 +33,7 @@ crew_controller_pbs <- function(
seconds_idle = Inf,
seconds_wall = Inf,
seconds_exit = NULL,
retry_tasks = TRUE,
tasks_max = Inf,
tasks_timers = 0L,
reset_globals = TRUE,
Expand Down Expand Up @@ -71,7 +72,8 @@ crew_controller_pbs <- function(
tls_enable = tls_enable,
tls_config = tls_config,
seconds_interval = seconds_interval,
seconds_timeout = seconds_timeout
seconds_timeout = seconds_timeout,
retry_tasks = retry_tasks
)
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 @@ -33,6 +33,7 @@ crew_controller_sge <- function(
seconds_idle = Inf,
seconds_wall = Inf,
seconds_exit = NULL,
retry_tasks = TRUE,
tasks_max = Inf,
tasks_timers = 0L,
reset_globals = TRUE,
Expand Down Expand Up @@ -73,7 +74,8 @@ crew_controller_sge <- function(
tls_enable = tls_enable,
tls_config = tls_config,
seconds_interval = seconds_interval,
seconds_timeout = seconds_timeout
seconds_timeout = seconds_timeout,
retry_tasks = retry_tasks
)
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 @@ -37,6 +37,7 @@ crew_controller_slurm <- function(
seconds_idle = Inf,
seconds_wall = Inf,
seconds_exit = NULL,
retry_tasks = TRUE,
tasks_max = Inf,
tasks_timers = 0L,
reset_globals = TRUE,
Expand Down Expand Up @@ -74,7 +75,8 @@ crew_controller_slurm <- function(
tls_enable = tls_enable,
tls_config = tls_config,
seconds_interval = seconds_interval,
seconds_timeout = seconds_timeout
seconds_timeout = seconds_timeout,
retry_tasks = retry_tasks
)
launcher <- crew_launcher_slurm(
name = name,
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ controller <- crew_controller_sge(
controller$start()
```

At this point, usage is exactly the same as basic [`crew`](https://wlandau.github.io/crew). The `push()` method submits tasks and auto-scales SGE workers to meet demand.
At this point, usage is exactly the same as basic [`crew`](https://wlandau.github.io/crew/). The `push()` method submits tasks and auto-scales SGE workers to meet demand.

```{r}
controller$push(name = "do work", command = do_work())
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ controller$start()
```

At this point, usage is exactly the same as basic
[`crew`](https://wlandau.github.io/crew). The `push()` method submits
[`crew`](https://wlandau.github.io/crew/). The `push()` method submits
tasks and auto-scales SGE workers to meet demand.

``` r
Expand Down
8 changes: 8 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.

8 changes: 8 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.

8 changes: 8 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.

8 changes: 8 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.

3 changes: 3 additions & 0 deletions tests/testthat/test-crew_monitor_slurm.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test_that("crew_monitor_slurm() validate", {
expect_silent(crew_monitor_slurm()$validate())
})

0 comments on commit 5f43156

Please sign in to comment.