mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-19 06:45:58 +08:00
Merge branch 'main' into mog/job-stuck-fix
This commit is contained in:
commit
69d724714f
@ -117,6 +117,8 @@ 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 });
|
||||||
try {
|
try {
|
||||||
console.log("Gracefully shutting down...");
|
console.log("Gracefully shutting down...");
|
||||||
await getWebScraperQueue().pause(false, true);
|
await getWebScraperQueue().pause(false, true);
|
||||||
@ -283,5 +285,7 @@ if (cluster.isMaster) {
|
|||||||
res.send({ isProduction: global.isProduction });
|
res.send({ isProduction: global.isProduction });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
console.log(`Worker ${process.pid} started`);
|
console.log(`Worker ${process.pid} started`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user