Job done results not show in admin UI
- Dominant language
- JavaScript
- Stars
- 9.4k
- Forks
- 858
- PR merge metrics
- No merged PRs in 30d
Description
With the code bellow what could be the reason that the result in my case the `rsp` which is a basic key/val object is **not visible in the completed jobs tab under the job status row?**
Have also tried to `JSON.stringify(rsp)` and send just a string in the done(null, rsp) but this does not work either. Funny because the error case is working perfectly and I even have stacktraces in the job status row...
``` js
var kue = require('kue'),
q = kue.createQueue(require('./config/kue')),
asyncPOST = require('./utils/asyncPOST');
q.process(
'ready_queue',
function (job, done) {
asyncPOST(job, function (err, rsp) {
if (err) {
done(err);
} else {
done(null, rsp);
}
});
}
);
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue with the shown q.process callback and compare the successful done(null, rsp) path with the working done(err) path. Trace how the result is handled before it reaches the completed jobs tab; done means the rsp is visible in the job status row for both an object and a JSON string.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100