Commit ddf6c514 authored by Erick Hitter's avatar Erick Hitter
Browse files

Default to one event retriever, as multiple are only useful for multisites

parent 550bae51
......@@ -20,7 +20,8 @@ In addition to the REST API endpoints that can be used to run events, a Go-based
* `-network` int
* WordPress network ID (default `1`)
* `-workers-get` int
* Number of workers to retrieve events (default `3`)
* Number of workers to retrieve events (default `1`)
* Increase for multisite instances so that sites are retrieved in a timely manner
* `-workers-run` int
* Number of workers to run events (default `5`)
* `-wp` string
......
......@@ -52,7 +52,7 @@ func init() {
flag.StringVar(&wpCliPath, "cli", "/usr/local/bin/wp", "Path to WP-CLI binary")
flag.IntVar(&wpNetwork, "network", 1, "WordPress network ID")
flag.StringVar(&wpPath, "wp", "/var/www/html", "Path to WordPress installation")
flag.IntVar(&workersGetEvents, "workers-get", 3, "Number of workers to retrieve events")
flag.IntVar(&workersGetEvents, "workers-get", 1, "Number of workers to retrieve events")
flag.IntVar(&workersRunEvents, "workers-run", 5, "Number of workers to run events")
flag.StringVar(&logDest, "log", "os.Stdout", "Log path, omit to log to Stdout")
flag.Parse()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment