MCPcopy Create free account
hub / github.com/actionhero/node-resque / shutdown

Function shutdown

examples/docker/worker/src/worker.ts:114–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112}
113
114async function shutdown() {
115 await scheduler.end();
116 await worker.end();
117 console.log(`processes gracefully stopped`);
118}
119
120function awaitHardStop() {
121 const timeout = process.env.SHUTDOWN_TIMEOUT

Callers 1

worker.tsFile · 0.70

Calls 1

endMethod · 0.45

Tested by

no test coverage detected