Update index.ts
This commit is contained in:
@@ -118,7 +118,7 @@ if (cluster.isMaster) {
|
|||||||
|
|
||||||
app.post(`/admin/${process.env.BULL_AUTH_KEY}/shutdown`, async (req, res) => {
|
app.post(`/admin/${process.env.BULL_AUTH_KEY}/shutdown`, async (req, res) => {
|
||||||
|
|
||||||
return res.status(200).json({ ok: true });
|
// return res.status(200).json({ ok: true });
|
||||||
try {
|
try {
|
||||||
console.log("Gracefully shutting down...");
|
console.log("Gracefully shutting down...");
|
||||||
await getWebScraperQueue().pause(false, true);
|
await getWebScraperQueue().pause(false, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user