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

Function tryShutdown

examples/example-mock.ts:54–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53 // just a helper for this demo
54 async function tryShutdown() {
55 if (jobsToComplete === 0) {
56 await new Promise((resolve) => {
57 setTimeout(resolve, 500);
58 });
59 await scheduler.end();
60 await worker.end();
61 process.exit();
62 }
63 }
64
65 // /////////////////
66 // START A WORKER //

Callers 1

bootFunction · 0.70

Calls 1

endMethod · 0.45

Tested by

no test coverage detected