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,
controller,
options_metrics = crew::crew_options_metrics()
)Arguments
- settings
Named list of arguments to
mirai::daemon().- controller
Character string, name of the controller.
- options_metrics
Either
NULLto opt out of resource metric logging for workers, or an object fromcrew_options_metrics()to enable and configure resource metric logging for workers. For resource logging to run, theautometricR package version 0.1.0 or higher must be installed.
See also
Other utility:
crew_assert(),
crew_clean(),
crew_deprecate(),
crew_eval(),
crew_random_name(),
crew_retry(),
crew_terminate_process(),
crew_terminate_signal()