Skip to content

When clicking 'Duplicate Job' the data should not be the output of queueAdapter.setFormatter('data', ...) #1031

@irian-codes

Description

@irian-codes

Hi,

We're using superjson in BullMQ and since Bullboard is not compatible with it, we save the superjson stringified keys in string format. So when JSON.parse occurs inside Bullboard it displays an non human readable string like "{\"json\":{\"date\":\"1970-01-01T00:00:00.000Z\"}, \"meta\": {\"values\": {\"date\": \"Date\"}}}".

So our solution si to create a data formatter with queueAdapter.setFormatter('data', dataFormatter) and now we can see only the json property in a nicely formatted way.

The problem is that when clicking on 'Duplicate job', the formatter runs too and generates a non superjson compatible JSON. So, the solution would be for Bullboard to display the raw data saved into Redis instead of the formatted data.

Job retries work with no issues, but not duplicating/adding a job manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions