feat: run worker

This commit is contained in:
karishmas6
2024-09-11 13:20:48 +05:30
parent 458ba1f6df
commit f97a2ef607

View File

@@ -8,6 +8,7 @@ import { BrowserPool } from "./browser-management/classes/BrowserPool";
import logger from './logger'
import { SERVER_PORT } from "./constants/config";
import {Server} from "socket.io";
import { worker } from './workflow-management/scheduler';
const app = express();
app.use(cors());
@@ -34,4 +35,9 @@ app.get('/', function (req, res) {
return res.send('Maxun server started 🚀');
});
/**
* Starts the worker for the workflow queue.
*/
worker.run();
server.listen(SERVER_PORT, () => logger.log('info',`Server listening on port ${SERVER_PORT}`));