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

Function tryShutdown

examples/customPluginExample.ts:71–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70 // just a helper for this demo
71 async function tryShutdown() {
72 if (jobsToComplete === 0) {
73 await new Promise((resolve) => {
74 setTimeout(resolve, 500);
75 });
76 await worker.end();
77 process.exit();
78 }
79 }
80
81 // /////////////////
82 // START A WORKER //

Callers 1

bootFunction · 0.70

Calls 1

endMethod · 0.45

Tested by

no test coverage detected