adonis-resque icon indicating copy to clipboard operation
adonis-resque copied to clipboard

feat: add suppressDuplicateTaskError through configuration

Open smmcbride opened this issue 2 months ago • 2 comments

node-resque defines the suppressDuplicateTaskError flag when scheduling a task at a time that it is already scheduled. This PR adds that flag to the configuration and passes it through when calling node-resqueue's enqueueIn or enqueueAt functions.

smmcbride avatar Oct 17 '25 18:10 smmcbride

Appreciate the pull request! I’ll check it out later.

shiny avatar Oct 20 '25 06:10 shiny

Currently, when a task is already scheduled, it returns undefined, which is inconsistent with the Promise<boolean | boolean[]> return type. Do you think it would be better to add undefined or null to the return type definition, or treat the suppressed duplicate case as a boolean false result instead?

shiny avatar Oct 20 '25 06:10 shiny