chore: Adds name to Redis connections for debugging (#3982)

* chore: Adds name to Redis connections for debugging, minor associated refactoring

* Upgrade bull, ioredis

* Add pid to redis connection name in development
This commit is contained in:
Tom Moor
2022-08-17 20:55:57 +01:00
committed by GitHub
parent e57941732a
commit 41d7cc26b5
6 changed files with 179 additions and 90 deletions

View File

@@ -27,16 +27,10 @@ import {
} from "./utils/startup";
import { checkUpdates } from "./utils/updates";
// If a services flag is passed it takes priority over the environment variable
// for example: --services=web,worker
const normalizedServiceFlag = getArg("services");
// The default is to run all services to make development and OSS installations
// easier to deal with. Separate services are only needed at scale.
const serviceNames = uniq(
(normalizedServiceFlag || env.SERVICES)
.split(",")
.map((service) => service.trim())
env.SERVICES.split(",").map((service) => service.trim())
);
// The number of processes to run, defaults to the number of CPU's available