Skip to content

Incorrect state The mirai dispatcher is not running. Please call the start[help] #1225

Closed Answered by wlandau
MarcellGranat asked this question in Help
Discussion options

You must be logged in to vote

The advice at #1217 (reply in thread) could help. Other than that, you could try upgrading nanonext and mirai to their CRAN versions and crew and targets to their current development versions:

remotes::install_github("wlandau/crew")
remotes::install_github("ropensci/targets")

triggering problem is that a pattern involves a large number of small targets

A reprex in your case might look like this. Does it reproduce the issue on your end?

library(targets)
controller <- crew_controller_local(workers = 4)
tar_option_set(controller = controller)
list(
  tar_target(x, seq_len(1000)),
  tar_target(y, Sys.sleep(0.1), pattern = map(x)) # Adjust the seconds in Sys.sleep() as needed.
)

the objects…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MarcellGranat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants