Disable Nitro queue plugin by default
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { startTelegramSendWorker } from "../queues/telegramSend";
|
||||
|
||||
export default defineNitroPlugin(() => {
|
||||
// Keep API nodes and worker nodes separate: start only when explicitly enabled.
|
||||
// Disabled by default. If you need background processing, wire it explicitly.
|
||||
if (process.env.RUN_QUEUE_WORKER !== "1") return;
|
||||
|
||||
startTelegramSendWorker();
|
||||
Reference in New Issue
Block a user