diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-07 10:56:45 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:17 +0200 |
commit | dab047092b51b453f175069573d8865fb17acdfc (patch) | |
tree | b53fbd6f6dfb5d5ce0e09da4ce694737dab3f07e /shared/extra-utils/server/servers.ts | |
parent | ae2abfd3aed3e75d39a316b49b914d187faa7475 (diff) | |
download | PeerTube-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.ts | 3 |
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' | |||
21 | import { FollowsCommand } from './follows-command' | 21 | import { FollowsCommand } from './follows-command' |
22 | import { JobsCommand } from './jobs-command' | 22 | import { JobsCommand } from './jobs-command' |
23 | import { PluginsCommand } from './plugins-command' | 23 | import { PluginsCommand } from './plugins-command' |
24 | import { RedundancyCommand } from './redundancy-command' | ||
24 | 25 | ||
25 | interface ServerInfo { | 26 | interface 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 | ||
92 | function parallelTests () { | 94 | function 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 | }) |