View source: R/crew_controller.R
crew_controller | R Documentation |
This function is for developers of crew
launcher plugins.
Users should use a specific controller helper such as
crew_controller_local()
.
crew_controller(
client,
launcher,
crashes_max = 5L,
backup = NULL,
auto_scale = NULL
)
client |
An |
launcher |
An |
crashes_max |
In rare cases, a worker may exit unexpectedly
before it completes its current task. If this happens,
|
backup |
An optional Limitations of |
auto_scale |
Deprecated. Use the |
Other controller:
crew_class_controller
if (identical(Sys.getenv("CREW_EXAMPLES"), "true")) {
client <- crew_client()
launcher <- crew_launcher_local()
controller <- crew_controller(client = client, launcher = launcher)
controller$start()
controller$push(name = "task", command = sqrt(4))
controller$wait()
controller$pop()
controller$terminate()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.