MCPcopy Index your code
hub / github.com/scality/cloudserver / stopCleanupJob

Function stopCleanupJob

lib/api/apiUtils/rateLimit/cleanup.js:53–61  ·  view source on GitHub ↗

* Stop the periodic cleanup job * Used for graceful shutdown or testing

(log)

Source from the content-addressed store, hash-verified

51 * Used for graceful shutdown or testing
52 */
53function stopCleanupJob(log) {
54 if (cleanupTimer !== null) {
55 clearTimeout(cleanupTimer);
56 cleanupTimer = null;
57 if (log) {
58 log.info('Stopped rate limit cleanup job');
59 }
60 }
61}
62
63module.exports = {
64 startCleanupJob,

Callers 1

cleanup.jsFile · 0.85

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected