aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/server/servers.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-07 10:56:45 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commitdab047092b51b453f175069573d8865fb17acdfc (patch)
treeb53fbd6f6dfb5d5ce0e09da4ce694737dab3f07e /shared/extra-utils/server/servers.ts
parentae2abfd3aed3e75d39a316b49b914d187faa7475 (diff)
downloadPeerTube-dab047092b51b453f175069573d8865fb17acdfc.tar.gz
PeerTube-dab047092b51b453f175069573d8865fb17acdfc.tar.zst
PeerTube-dab047092b51b453f175069573d8865fb17acdfc.zip
Introduce redundancy command
Diffstat (limited to 'shared/extra-utils/server/servers.ts')
-rw-r--r--shared/extra-utils/server/servers.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/extra-utils/server/servers.ts b/shared/extra-utils/server/servers.ts
index 79d6b7b1a..eaf39ecea 100644
--- a/shared/extra-utils/server/servers.ts
+++ b/shared/extra-utils/server/servers.ts
@@ -21,6 +21,7 @@ import { DebugCommand } from './debug-command'
21import { FollowsCommand } from './follows-command' 21import { FollowsCommand } from './follows-command'
22import { JobsCommand } from './jobs-command' 22import { JobsCommand } from './jobs-command'
23import { PluginsCommand } from './plugins-command' 23import { PluginsCommand } from './plugins-command'
24import { RedundancyCommand } from './redundancy-command'
24 25
25interface ServerInfo { 26interface ServerInfo {
26 app: ChildProcess 27 app: ChildProcess
@@ -87,6 +88,7 @@ interface ServerInfo {
87 followsCommand?: FollowsCommand 88 followsCommand?: FollowsCommand
88 jobsCommand?: JobsCommand 89 jobsCommand?: JobsCommand
89 pluginsCommand?: PluginsCommand 90 pluginsCommand?: PluginsCommand
91 redundancyCommand?: RedundancyCommand
90} 92}
91 93
92function parallelTests () { 94function parallelTests () {
@@ -305,6 +307,7 @@ async function runServer (server: ServerInfo, configOverrideArg?: any, args = []
305 server.followsCommand = new FollowsCommand(server) 307 server.followsCommand = new FollowsCommand(server)
306 server.jobsCommand = new JobsCommand(server) 308 server.jobsCommand = new JobsCommand(server)
307 server.pluginsCommand = new PluginsCommand(server) 309 server.pluginsCommand = new PluginsCommand(server)
310 server.redundancyCommand = new RedundancyCommand(server)
308 311
309 res(server) 312 res(server)
310 }) 313 })