Added more logging, improved cleanup
This commit is contained in:
1 parent
9da7c00bd3
commit
c11d5f4d5a
3 files changed
+52
-15
No files matched your search
@@ -4,7 +4,7 @@ const SERVICE_NAME = "JobQueue";
|
||||
|
||||
const getJobs = async (req, res, next) => {
|
||||
try {
|
||||
const jobs = await req.jobQueue.getJobs();
|
||||
const jobs = await req.jobQueue.getJobStats();
|
||||
return res.status(200).json({ jobs });
|
||||
} catch (error) {
|
||||
error.service = SERVICE_NAME;
|
||||
|
||||
Reference in new issue
Block a user