Title: | Serve Orderly |
---|---|
Description: | Run orderly reports as a server. |
Authors: | Rich FitzJohn |
Maintainer: | Rich FitzJohn <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.3.32 |
Built: | 2024-10-05 05:42:46 UTC |
Source: | https://github.com/vimc/orderly.server |
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.
orderly_runner(path, identity = NULL, queue_id = NULL, workers = 1)
orderly_runner(path, identity = NULL, queue_id = NULL, workers = 1)
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 |
queue_id |
ID of an existing queue to connect to, creates a new one if NULL |
workers |
Number of workers to spawn |
A runner object, with methods designed for internal use only.
available <- redux::redis_available() if (available) { path <- orderly:::prepare_orderly_git_example() runner <- orderly.server::orderly_runner(path[["local"]], workers = 0) }
available <- redux::redis_available() if (available) { path <- orderly:::prepare_orderly_git_example() runner <- orderly.server::orderly_runner(path[["local"]], workers = 0) }
Run orderly server
server( path, port, host = "0.0.0.0", go_signal = NULL, queue_id = NULL, workers = 1, backup_period = 600, timeout_rate_limit = 2 * 60, log_level = "info", identity = NULL )
server( path, port, host = "0.0.0.0", go_signal = NULL, queue_id = NULL, workers = 1, backup_period = 600, timeout_rate_limit = 2 * 60, log_level = "info", identity = NULL )
path |
Path to serve |
port |
Port to serve on |
host |
Optional |
go_signal |
If given, we poll for a file |
queue_id |
ID of an existing queue to connect to, creates a new one if NULL |
workers |
Number of workers to spawn |
backup_period |
How frequently should backup be run, if NULL backup is skipped |
timeout_rate_limit |
How frequently should the API check for timeouts default 2 mins. |
log_level |
The "lgr" log level to use |
identity |
Optional server identity |