orderly_runner: Orderly runner

View source: R/runner.R

orderly_runnerR Documentation

Orderly runner

Description

An orderly runner. This is used to run reports as a server process. It's designed to be used in conjunction with OrderlyWeb, so there is no "draft" stage and reports are committed as soon as they are run. This function is not intended for human end users, only for creating automated tools for use with orderly.

Usage

orderly_runner(path, identity = NULL, queue_id = NULL, workers = 1)

Arguments

path

Path to use

identity

The name of the server identity, as listed in orderly_config.yml's remote section. If not given, then we will look to see if the orderly configuration disallows branch changes (based on the ORDERLY_API_SERVER_IDENTITY environment variable. Used to set configuration specific to this server (e.g., host, port, teams notification URL, default branch name, etc).

queue_id

ID of an existing queue to connect to, creates a new one if NULL

workers

Number of workers to spawn

Value

A runner object, with methods designed for internal use only.

Examples

available <- redux::redis_available()
if (available) {
  path <- orderly:::prepare_orderly_git_example()
  runner <- orderly.server::orderly_runner(path[["local"]], workers = 0)
}

vimc/orderly.server documentation built on July 27, 2023, 5:07 p.m.