Skip to content

Customized job ID cannot be deduplication #2

@nightire

Description

@nightire

The documentation says that when adding a job to the queue, if the jobId is specified, it can be used for deduplication.
But the problem is that I did this, but I didn't see the deduplication effect at all.

My requirement is to restore a batch of jobs when the service starts; but if these jobss already exist in SQLite, they should be skipped.

I prepared a custom jobId for each job , but jobs with the same ID were inserted into the database repeatedly. So I don't understand how exactly this deduplication works.

In addition, I also saw the design of uniqueKey, dedupe.replace and dedupe.extend in the commit history.
But the problem is that I found that they are not in the public interface and there is no way to access them. Is there any plan to release them as public interface?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions