Skip to content

Commit

Permalink
Adjust to wlandau/crew#131 (seconds_interval)
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau-lilly committed Oct 2, 2023
1 parent 10d9681 commit 0b0aa41
Show file tree
Hide file tree
Showing 20 changed files with 66 additions and 46 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Authors@R: c(
Depends:
R (>= 4.0.0)
Imports:
crew (>= 0.5.0.9002),
crew (>= 0.5.0.9003),
lifecycle,
R6,
rlang,
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# crew.cluster 0.1.2.9000 (development)

* Deprecate `seconds_exit` (https://github.com/wlandau/crew/issues/125, @shikokuchuo).
* Deprecate `seconds_interval` (https://github.com/wlandau/crew/issues/131).

# crew.cluster 0.1.2

Expand Down
1 change: 0 additions & 1 deletion R/crew_controller_lsf.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ crew_controller_lsf <- function(
)
launcher <- crew_launcher_lsf(
name = name,
seconds_interval = seconds_interval,
seconds_launch = seconds_launch,
seconds_idle = seconds_idle,
seconds_wall = seconds_wall,
Expand Down
1 change: 0 additions & 1 deletion R/crew_controller_pbs.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ crew_controller_pbs <- function(
)
launcher <- crew_launcher_pbs(
name = name,
seconds_interval = seconds_interval,
seconds_launch = seconds_launch,
seconds_idle = seconds_idle,
seconds_wall = seconds_wall,
Expand Down
1 change: 0 additions & 1 deletion R/crew_controller_sge.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ crew_controller_sge <- function(
)
launcher <- crew_launcher_sge(
name = name,
seconds_interval = seconds_interval,
seconds_launch = seconds_launch,
seconds_idle = seconds_idle,
seconds_wall = seconds_wall,
Expand Down
1 change: 0 additions & 1 deletion R/crew_controller_slurm.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ crew_controller_slurm <- function(
)
launcher <- crew_launcher_slurm(
name = name,
seconds_interval = seconds_interval,
seconds_launch = seconds_launch,
seconds_idle = seconds_idle,
seconds_wall = seconds_wall,
Expand Down
15 changes: 10 additions & 5 deletions R/crew_launcher_lsf.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#' `lsf_cores = NULL` omits this line.
crew_launcher_lsf <- function(
name = NULL,
seconds_interval = 0.25,
seconds_interval = NULL,
seconds_launch = 86400,
seconds_idle = Inf,
seconds_wall = Inf,
Expand All @@ -81,10 +81,18 @@ crew_launcher_lsf <- function(
lsf_memory_gigabytes_required = NULL,
lsf_cores = NULL
) {
crew_deprecate(
name = "seconds_interval",
date = "2023-10-02",
version = "0.5.0.9003",
alternative = "none (no longer necessary)",
condition = "message",
value = seconds_interval,
frequency = "once"
)
name <- as.character(name %|||% crew::crew_random_name())
launcher <- crew_class_launcher_lsf$new(
name = name,
seconds_interval = seconds_interval,
seconds_launch = seconds_launch,
seconds_idle = seconds_idle,
seconds_wall = seconds_wall,
Expand Down Expand Up @@ -138,7 +146,6 @@ crew_class_launcher_lsf <- R6::R6Class(
#' @description LSF launcher constructor.
#' @return an LSF launcher object.
#' @param name See [crew_launcher_lsf()].
#' @param seconds_interval See [crew_launcher_lsf()].
#' @param seconds_launch See [crew_launcher_lsf()].
#' @param seconds_idle See [crew_launcher_lsf()].
#' @param seconds_wall See [crew_launcher_lsf()].
Expand All @@ -163,7 +170,6 @@ crew_class_launcher_lsf <- R6::R6Class(
#' @param lsf_cores See [crew_launcher_lsf()].
initialize = function(
name = NULL,
seconds_interval = NULL,
seconds_launch = NULL,
seconds_idle = NULL,
seconds_wall = NULL,
Expand All @@ -189,7 +195,6 @@ crew_class_launcher_lsf <- R6::R6Class(
) {
super$initialize(
name = name,
seconds_interval = seconds_interval,
seconds_launch = seconds_launch,
seconds_idle = seconds_idle,
seconds_wall = seconds_wall,
Expand Down
15 changes: 10 additions & 5 deletions R/crew_launcher_pbs.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#' `pbs_walltime_hours = NULL` omits this line.
crew_launcher_pbs <- function(
name = NULL,
seconds_interval = 0.25,
seconds_interval = NULL,
seconds_launch = 86400,
seconds_idle = Inf,
seconds_wall = Inf,
Expand All @@ -87,10 +87,18 @@ crew_launcher_pbs <- function(
pbs_cores = NULL,
pbs_walltime_hours = 12
) {
crew_deprecate(
name = "seconds_interval",
date = "2023-10-02",
version = "0.5.0.9003",
alternative = "none (no longer necessary)",
condition = "message",
value = seconds_interval,
frequency = "once"
)
name <- as.character(name %|||% crew::crew_random_name())
launcher <- crew_class_launcher_pbs$new(
name = name,
seconds_interval = seconds_interval,
seconds_launch = seconds_launch,
seconds_idle = seconds_idle,
seconds_wall = seconds_wall,
Expand Down Expand Up @@ -147,7 +155,6 @@ crew_class_launcher_pbs <- R6::R6Class(
#' @description PBS/TORQUE launcher constructor.
#' @return an PBS/TORQUE launcher object.
#' @param name See [crew_launcher_pbs()].
#' @param seconds_interval See [crew_launcher_pbs()].
#' @param seconds_launch See [crew_launcher_pbs()].
#' @param seconds_idle See [crew_launcher_pbs()].
#' @param seconds_wall See [crew_launcher_pbs()].
Expand All @@ -173,7 +180,6 @@ crew_class_launcher_pbs <- R6::R6Class(
#' @param pbs_walltime_hours See [crew_launcher_pbs()].
initialize = function(
name = NULL,
seconds_interval = NULL,
seconds_launch = NULL,
seconds_idle = NULL,
seconds_wall = NULL,
Expand All @@ -200,7 +206,6 @@ crew_class_launcher_pbs <- R6::R6Class(
) {
super$initialize(
name = name,
seconds_interval = seconds_interval,
seconds_launch = seconds_launch,
seconds_idle = seconds_idle,
seconds_wall = seconds_wall,
Expand Down
15 changes: 10 additions & 5 deletions R/crew_launcher_sge.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
#' `"#$ -l gpu=1"` in the SGE job script. `sge_gpu = NULL` omits this line.
crew_launcher_sge <- function(
name = NULL,
seconds_interval = 0.25,
seconds_interval = NULL,
seconds_launch = 86400,
seconds_idle = Inf,
seconds_wall = Inf,
Expand All @@ -91,10 +91,18 @@ crew_launcher_sge <- function(
sge_cores = NULL,
sge_gpu = NULL
) {
crew_deprecate(
name = "seconds_interval",
date = "2023-10-02",
version = "0.5.0.9003",
alternative = "none (no longer necessary)",
condition = "message",
value = seconds_interval,
frequency = "once"
)
name <- as.character(name %|||% crew::crew_random_name())
launcher <- crew_class_launcher_sge$new(
name = name,
seconds_interval = seconds_interval,
seconds_launch = seconds_launch,
seconds_idle = seconds_idle,
seconds_wall = seconds_wall,
Expand Down Expand Up @@ -157,7 +165,6 @@ crew_class_launcher_sge <- R6::R6Class(
#' @description SGE launcher constructor.
#' @return an SGE launcher object.
#' @param name See [crew_launcher_sge()].
#' @param seconds_interval See [crew_launcher_sge()].
#' @param seconds_launch See [crew_launcher_sge()].
#' @param seconds_idle See [crew_launcher_sge()].
#' @param seconds_wall See [crew_launcher_sge()].
Expand Down Expand Up @@ -185,7 +192,6 @@ crew_class_launcher_sge <- R6::R6Class(
#' @param sge_gpu See [crew_launcher_sge()].
initialize = function(
name = NULL,
seconds_interval = NULL,
seconds_launch = NULL,
seconds_idle = NULL,
seconds_wall = NULL,
Expand Down Expand Up @@ -214,7 +220,6 @@ crew_class_launcher_sge <- R6::R6Class(
) {
super$initialize(
name = name,
seconds_interval = seconds_interval,
seconds_launch = seconds_launch,
seconds_idle = seconds_idle,
seconds_wall = seconds_wall,
Expand Down
15 changes: 10 additions & 5 deletions R/crew_launcher_slurm.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#' omits this line.
crew_launcher_slurm <- function(
name = NULL,
seconds_interval = 0.25,
seconds_interval = NULL,
seconds_launch = 86400,
seconds_idle = Inf,
seconds_wall = Inf,
Expand All @@ -74,10 +74,18 @@ crew_launcher_slurm <- function(
slurm_cpus_per_task = NULL,
slurm_time_minutes = 1440
) {
crew_deprecate(
name = "seconds_interval",
date = "2023-10-02",
version = "0.5.0.9003",
alternative = "none (no longer necessary)",
condition = "message",
value = seconds_interval,
frequency = "once"
)
name <- as.character(name %|||% crew::crew_random_name())
launcher <- crew_class_launcher_slurm$new(
name = name,
seconds_interval = seconds_interval,
seconds_launch = seconds_launch,
seconds_idle = seconds_idle,
seconds_wall = seconds_wall,
Expand Down Expand Up @@ -128,7 +136,6 @@ crew_class_launcher_slurm <- R6::R6Class(
#' @description SLURM launcher constructor.
#' @return an SLURM launcher object.
#' @param name See [crew_launcher_slurm()].
#' @param seconds_interval See [crew_launcher_slurm()].
#' @param seconds_launch See [crew_launcher_slurm()].
#' @param seconds_idle See [crew_launcher_slurm()].
#' @param seconds_wall See [crew_launcher_slurm()].
Expand All @@ -152,7 +159,6 @@ crew_class_launcher_slurm <- R6::R6Class(
#' @param slurm_time_minutes See [crew_launcher_slurm()].
initialize = function(
name = NULL,
seconds_interval = NULL,
seconds_launch = NULL,
seconds_idle = NULL,
seconds_wall = NULL,
Expand All @@ -177,7 +183,6 @@ crew_class_launcher_slurm <- R6::R6Class(
) {
super$initialize(
name = name,
seconds_interval = seconds_interval,
seconds_launch = seconds_launch,
seconds_idle = seconds_idle,
seconds_wall = seconds_wall,
Expand Down
2 changes: 2 additions & 0 deletions man/crew_class_launcher_cluster.Rd

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

5 changes: 2 additions & 3 deletions man/crew_class_launcher_lsf.Rd

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

5 changes: 2 additions & 3 deletions man/crew_class_launcher_pbs.Rd

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

5 changes: 2 additions & 3 deletions man/crew_class_launcher_sge.Rd

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

5 changes: 2 additions & 3 deletions man/crew_class_launcher_slurm.Rd

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

3 changes: 2 additions & 1 deletion man/crew_launcher_cluster.Rd

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

Loading

0 comments on commit 0b0aa41

Please sign in to comment.