scaler updates

This commit is contained in:
2026-02-20 11:05:03 -06:00
parent 2d1f613d39
commit 5469a0dc5c
7 changed files with 152 additions and 8 deletions

View File

@@ -40,7 +40,7 @@ r.patch("/:status", async (req, res) => {
level: "info",
module: "utils",
subModule: "jobs",
message: `${name} was restarted`,
message: `${body.name} was restarted`,
data: getAllJobs(),
status: 200,
});

View File

@@ -1,6 +1,6 @@
import type { Express } from "express";
import getActiveJobs from "./cronerActiveJobs.route.js";
import jobStatusChange from "./cronerStatusChange.js";
import jobStatusChange from "./cronerStatusChange.route.js";
export const setupUtilsRoutes = (baseUrl: string, app: Express) => {
app.use(`${baseUrl}/api/utils/croner`, getActiveJobs);
app.use(`${baseUrl}/api/utils/croner`, jobStatusChange);