Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
114
async
function
shutdown() {
115
await
scheduler.end();
116
await
worker.end();
117
console.log(`processes gracefully stopped`);
118
}
119
120
function
awaitHardStop() {
121
const
timeout = process.env.SHUTDOWN_TIMEOUT
Callers
1
worker.ts
File · 0.70
Calls
1
end
Method · 0.45
Tested by
no test coverage detected