IO-117 Begin PBS Structure.

This commit is contained in:
Patrick Fic
2021-10-13 11:45:24 -07:00
parent 71f0b8a005
commit c4e59c1a5e
12 changed files with 93 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ const CdkCalculateAllocations =
require("../cdk/cdk-calculate-allocations").default;
const { isArray } = require("lodash");
const logger = require("../utils/logger");
const PbsExportJob = require("../accounting/pbs/pbs-job-export");
io.use(function (socket, next) {
try {
@@ -57,6 +58,7 @@ io.on("connection", (socket) => {
});
});
///CDK
socket.on("cdk-export-job", (jobid) => {
CdkJobExport(socket, jobid);
});
@@ -94,6 +96,13 @@ io.on("connection", (socket) => {
callback(allocations);
});
//END CDK
//PBS
socket.on("pbs-export-job", (jobid) => {
PbsExportJob(socket, jobid);
});
//End PBS
socket.on("disconnect", () => {
createLogEvent(socket, "DEBUG", `User disconnected.`);