Automattic / Automattic/kue

Possibility to pass extra results with error

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

Description

Hi,
I have an ability to send an extra info when error hand happened.
Is that possible to do?

Like that:

``` js
done(new Error('test'), {extraData: 1});
```

For now second param never be send to kue

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named. Start by tracing how the done(error, ...) callback is handled and how job results are sent to Kue, then check existing tests around error and result propagation; done should preserve the extraData object and expose it to the receiving side.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, redis
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.