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

Function tryShutdown

examples/errorExample.ts:44–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43 // just a helper for this demo
44 async function tryShutdown() {
45 if (jobsToComplete === 0) {
46 await new Promise((resolve) => {
47 setTimeout(resolve, 500);
48 });
49 await worker.end();
50 process.exit();
51 }
52 }
53
54 // /////////////////
55 // START A WORKER //

Callers 1

bootFunction · 0.70

Calls 1

endMethod · 0.45

Tested by

no test coverage detected