Automattic / Automattic/kue

origfn

Open
#869 4 comments 0 reactions 0 assignees View on GitHub
Bug needs pull request
Dominant language
JavaScript
Stars
9.4k
Forks
858
PR merge metrics
No merged PRs in 30d

Description

Hi, I've this error on graceful queue shutdown on version 0.10.5:

origfn is not a function
Apr 27 08:29:59 test-air-alvieromartini app/web.2: 15:29:58 web-app-0 STACK:
Apr 27 08:29:59 test-air-alvieromartini app/web.2: 15:29:58 web-app-0 TypeError: origFn is not a function
Apr 27 08:29:59 test-air-alvieromartini app/web.2: 15:29:58 web-app-0 at Queue.shutdown (/app/node_modules/kue/lib/kue.js:423:5)
Apr 27 08:29:59 test-air-alvieromartini app/web.2: 15:29:58 web-app-0 at process. (/app/workers/queue.js:14:18)
Apr 27 08:29:59 test-air-alvieromartini app/web.2: 15:29:58 web-app-0 at process.g (events.js:260:16)
Apr 27 08:29:59 test-air-alvieromartini app/web.2: 15:29:58 web-app-0 at emitNone (events.js:72:20)
Apr 27 08:29:59 test-air-alvieromartini app/web.2: 15:29:58 web-app-0 at process.emit (events.js:166:7)
Apr 27 08:29:59 test-air-alvieromartini app/web.2: 15:29:58 web-app-0 at Signal.wrap.onsignal (node.js:804:46)

Seems to be a regression to [https://github.com/Automattic/kue/issues/606](https://github.com/Automattic/kue/issues/606)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at Queue.shutdown in lib/kue.js:423 and inspect the caller shown at /app/workers/queue.js:14. Compare the regression with issue #606 and reproduce graceful queue shutdown on version 0.10.5. Done means shutdown completes without the “origFn is not a function” TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.