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?
The documentation says that when adding a job to the queue, if the
jobIdis 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
jobIdfor 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.replaceanddedupe.extendin 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?