MCPcopy
hub / github.com/scality/cloudserver / cleanUp

Method cleanUp

lib/server.js:329–338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

327 * This exits the running process properly.
328 */
329 cleanUp() {
330 logger.info('server shutting down');
331 // Stop token refill job if running
332 if (this.config.rateLimiting?.enabled) {
333 stopRefillJob(logger);
334 }
335 Promise.all(this.servers.map(server =>
336 new Promise(resolve => server.close(resolve))
337 )).then(() => process.exit(0));
338 }
339
340 caughtExceptionShutdown() {
341 if (!this.cluster) {

Callers

nothing calls this directly

Calls 2

stopRefillJobFunction · 0.85
infoMethod · 0.80

Tested by

no test coverage detected