Files
Jellystat/backend/classes/task-manager-singleton.js
CyferShepard 81fe4997d1 task scheduler rework
task manager implementation to start/stop tasks WIP
implemented socket client for internal communication between threads - needs more testing as connection string is hardcoded
added loopback in ws server to pass through toast ws messages from threads - needs more testing

fixed potential bug during config fetch function when syncing
2025-03-04 22:23:34 +02:00

17 lines
364 B
JavaScript

const TaskManager = require("./task-manager");
class TaskManagerSingleton {
constructor() {
if (!TaskManagerSingleton.instance) {
TaskManagerSingleton.instance = new TaskManager();
console.log("Task Manager Singleton created");
}
}
getInstance() {
return TaskManagerSingleton.instance;
}
}
module.exports = TaskManagerSingleton;