Skip to content

Commit

Permalink
Merge pull request #187 from shikokuchuo/mirai
Browse files Browse the repository at this point in the history
Tidy-ups post mirai 1.3.0 release
  • Loading branch information
wlandau authored Oct 10, 2024
2 parents 80fa70e + 865ca6b commit 6f79d30
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ Imports:
data.table,
getip,
later,
mirai (>= 1.1.0),
nanonext (>= 1.1.0),
mirai (>= 1.3.0),
nanonext (>= 1.3.0),
processx,
promises,
ps,
Expand Down
3 changes: 1 addition & 2 deletions R/crew_async.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ crew_class_async <- R6::R6Class(
private$.instance <- crew::crew_random_name()
mirai::daemons(
n = private$.workers,
dispatcher = FALSE,
dispatcher = "none",
autoexit = crew_terminate_signal(),
resilience = FALSE,
idletime = 60000,
.compute = private$.instance
)
Expand Down
2 changes: 1 addition & 1 deletion R/crew_client.R
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ crew_class_client <- R6::R6Class(
mirai::daemons(
n = private$.workers,
url = url,
dispatcher = TRUE,
dispatcher = "process",
seed = NULL,
tls = private$.tls$client(),
pass = private$.tls$password,
Expand Down
2 changes: 1 addition & 1 deletion tests/local/test-tls.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ crew_test("mirai client can start using custom credentials", {
tmp <- mirai::daemons(
n = 1L,
url = "wss://127.0.0.1:0",
dispatcher = TRUE,
dispatcher = "process",
seed = NULL,
tls = c(
paste(readLines("fd.crt"), collapse = "\n"),
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-crew_monitor_local.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ crew_test("monitor dispatchers", {
skip_on_os("windows")
x <- crew_monitor_local()
expect_true(is.integer(x$dispatchers()))
mirai::daemons(n = 1L, dispatcher = TRUE)
mirai::daemons(n = 1L, dispatcher = "process")
on.exit({
mirai::daemons(n = 0L)
gc()
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-crew_worker.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ crew_test("crew_worker() can run mirai tasks and assigns env vars", {
mirai::daemons(
n = 1L,
url = "ws://127.0.0.1:0",
dispatcher = TRUE,
dispatcher = "process",
token = TRUE
)
on.exit(mirai::daemons(n = 0L), add = TRUE)
Expand Down Expand Up @@ -70,7 +70,7 @@ crew_test("crew_worker() metrics logging to a directory", {
mirai::daemons(
n = 1L,
url = "ws://127.0.0.1:0",
dispatcher = TRUE,
dispatcher = "process",
token = TRUE
)
on.exit(mirai::daemons(n = 0L), add = TRUE)
Expand Down

0 comments on commit 6f79d30

Please sign in to comment.