repro:
in Failed screen, click the gear icon dropdown, then click "delete all failed jobs"
expected: the jobs disappear
actual: the jobs are still there. I can see in the browser console there is an error:
Uncaught TypeError: Cannot read property 'name' of undefined
at Object.deleteByStatus (RedisHandler.js:35)
at HTMLAnchorElement.onclick (VM1131 failed:1)
deleteByStatus @ RedisHandler.js:35
onclick @ VM1131 failed:1
using versions:
"bull": "2.2.6",
"bull-ui": "1.2.1",
here is one of the failed jobs i have:
Job ID: 4
Type: test job
Status: failed
Data: {
"num": 39906
}
Stack Trace:
["TypeError: _.rand is not a function\n at Queue.testJobBullQueue.process.job (/Users/brad/repos/nd-api/api/controllers/test-job.js:71:37)\n at Queue.tryCatcher (/Users/brad/repos/nd-api/node_modules/bluebird/js/release/util.js:16:23)\n at Queue.handler (/Users/brad/repos/nd-api/node_modules/bluebird/js/release/method.js:15:34)\n at /Users/brad/repos/nd-api/node_modules/bull/lib/queue.js:742:30\n at bound (domain.js:280:14)\n at runBound (domain.js:293:12)\n at tryCatcher (/Users/brad/repos/nd-api/node_modules/bluebird/js/release/util.js:16:23)\n at Promise._settlePromiseFromHandler (/Users/brad/repos/nd-api/node_modules/bluebird/js/release/promise.js:512:31)\n at Promise._settlePromise (/Users/brad/repos/nd-api/node_modules/bluebird/js/release/promise.js:569:18)\n at Promise._settlePromise0 (/Users/brad/repos/nd-api/node_modules/bluebird/js/release/promise.js:614:10)\n at Promise._settlePromises (/Users/brad/repos/nd-api/node_modules/bluebird/js/release/promise.js:693:18)\n at Async._drainQueue (/Users/brad/repos/nd-api/node_modules/bluebird/js/release/async.js:133:16)\n at Async._drainQueues (/Users/brad/repos/nd-api/node_modules/bluebird/js/release/async.js:143:10)\n at Immediate.Async.drainQueues (/Users/brad/repos/nd-api/node_modules/bluebird/js/release/async.js:17:14)\n at runCallback (timers.js:637:20)\n at tryOnImmediate (timers.js:610:5)\n at processImmediate [as _immediateCallback] (timers.js:582:5)",null]
repro: in Failed screen, click the gear icon dropdown, then click "delete all failed jobs"
expected: the jobs disappear
actual: the jobs are still there. I can see in the browser console there is an error:
using versions:
here is one of the failed jobs i have: