Management API and tools

This commit is contained in:
oitsjustjose 2023-04-24 19:38:35 -05:00
commit 9b81a6cc8b
15 changed files with 222 additions and 149 deletions

View file

@ -0,0 +1,12 @@
/* Gets any jobs that were Processing when the processing node restarted */
import { Request, Response } from "express";
import Jobs from "../../models/Job";
import Status from "../../status";
export default async (req: Request, res: Response) => {
const jobs = await Jobs.find({ status: Status.PROCESSING }).sort({
queuePlace: "asc",
});
return res.status(200).json(jobs);
};