Disable memory healthcheck

Temporarily disable the memory healthcheck to test for existing memory leaks.

Change-type: minor
This commit is contained in:
Felipe Lalanne 2024-09-26 15:10:47 -03:00
parent cb465a1d81
commit b385bf5810
No known key found for this signature in database
GPG Key ID: 03E696BFD472B26A

View File

@ -7,7 +7,6 @@ import SupervisorAPI from './device-api';
import * as v1 from './device-api/v1'; import * as v1 from './device-api/v1';
import * as v2 from './device-api/v2'; import * as v2 from './device-api/v2';
import logMonitor from './logging/monitor'; import logMonitor from './logging/monitor';
import * as memory from './memory';
import { initializeContractRequirements } from './lib/contracts'; import { initializeContractRequirements } from './lib/contracts';
import { normaliseLegacyDatabase } from './lib/legacy'; import { normaliseLegacyDatabase } from './lib/legacy';
@ -72,11 +71,7 @@ export class Supervisor {
log.info('Starting API server'); log.info('Starting API server');
this.api = new SupervisorAPI({ this.api = new SupervisorAPI({
routers: [v1.router, v2.router], routers: [v1.router, v2.router],
healthchecks: [ healthchecks: [apiBinder.healthcheck, deviceState.healthcheck],
apiBinder.healthcheck,
deviceState.healthcheck,
memory.healthcheck,
],
}); });
deviceState.on('shutdown', () => this.api.stop()); deviceState.on('shutdown', () => this.api.stop());
return this.api.listen(conf.listenPort, conf.apiTimeout); return this.api.listen(conf.listenPort, conf.apiTimeout);