Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot "delete all failed jobs" #44

Open
bradwbradw opened this issue Jun 28, 2017 · 0 comments
Open

cannot "delete all failed jobs" #44

bradwbradw opened this issue Jun 28, 2017 · 0 comments

Comments

@bradwbradw
Copy link

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant