Browse Source

Server info: number of task resolvers (#510)

pull/1/head
Evgeny Smyshlyaev 6 years ago committed by GitHub
parent
commit
417ea7ea34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      server/src/controllers/analytics_controller.ts
  2. 1
      server/src/index.ts

4
server/src/controllers/analytics_controller.ts

@ -361,6 +361,10 @@ export function getQueueLength() {
return analyticsService.queueLength; return analyticsService.queueLength;
} }
export function getTaskResolversLength(): number {
return taskResolvers.size;
}
export function isAnalyticReady(): boolean { export function isAnalyticReady(): boolean {
return analyticsService.ready; return analyticsService.ready;
} }

1
server/src/index.ts

@ -66,6 +66,7 @@ async function init() {
lastAlive: AnalyticsController.analyticsLastAlive(), lastAlive: AnalyticsController.analyticsLastAlive(),
tasksQueueLength: AnalyticsController.getQueueLength() tasksQueueLength: AnalyticsController.getQueueLength()
}, },
awaitedTasksNumber: AnalyticsController.getTaskResolversLength(),
nodeVersion: process.version, nodeVersion: process.version,
packageVersion: PACKAGE_VERSION, packageVersion: PACKAGE_VERSION,
npmUserAgent: process.env.npm_config_user_agent, npmUserAgent: process.env.npm_config_user_agent,

Loading…
Cancel
Save