@bull-board/api
Advanced tools
Comparing version 3.2.5 to 3.2.6
@@ -5,2 +5,3 @@ "use strict"; | ||
const redis_info_1 = require("redis-info"); | ||
const statuses_1 = require("../constants/statuses"); | ||
const metrics = [ | ||
@@ -44,3 +45,10 @@ 'redis_version', | ||
}; | ||
const allStatuses = ['active', 'completed', 'delayed', 'failed', 'paused', 'waiting']; | ||
const allStatuses = [ | ||
statuses_1.STATUSES.active, | ||
statuses_1.STATUSES.completed, | ||
statuses_1.STATUSES.delayed, | ||
statuses_1.STATUSES.failed, | ||
statuses_1.STATUSES.paused, | ||
statuses_1.STATUSES.waiting, | ||
]; | ||
const JOB_PER_PAGE = 10; | ||
@@ -47,0 +55,0 @@ function getPagination(statuses, counts, currentPage) { |
@@ -5,4 +5,5 @@ "use strict"; | ||
const queue_1 = require("../providers/queue"); | ||
const statuses_1 = require("../constants/statuses"); | ||
async function retryAll(_req, queue) { | ||
const jobs = await queue.getJobs(['failed']); | ||
const jobs = await queue.getJobs([statuses_1.STATUSES.failed]); | ||
await Promise.all(jobs.map((job) => job.retry())); | ||
@@ -9,0 +10,0 @@ return { status: 200, body: {} }; |
{ | ||
"name": "@bull-board/api", | ||
"version": "3.2.5", | ||
"version": "3.2.6", | ||
"description": "Core server APIs of bull-board", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40913
661