crew_worker: Crew worker.

View source: R/crew_worker.R

crew_workerR Documentation

Crew worker.

Description

Launches a crew worker which runs a mirai daemon. Not a user-side function. Users should not call crew_worker() directly. See launcher plugins like crew_launcher_local() for examples.

Usage

crew_worker(
  settings,
  launcher,
  worker,
  options_metrics = crew::crew_options_metrics()
)

Arguments

settings

Named list of arguments to mirai::daemon().

launcher

Character string, name of the launcher

worker

Character of length 1 to uniquely identify the current worker.

options_metrics

Either NULL to opt out of resource metric logging for workers, or an object from crew_options_metrics() to enable and configure resource metric logging for workers. For resource logging to run, the autometric R package version 0.1.0 or higher must be installed.

Value

NULL (invisibly)

See Also

Other utility: crew_assert(), crew_clean(), crew_deprecate(), crew_eval(), crew_random_name(), crew_retry(), crew_terminate_process(), crew_terminate_signal()


wlandau/crew documentation built on Feb. 8, 2025, 10:12 a.m.