you want your delayed jobs to run only once even if they are triggered several time during a fixed delay? Then you need unique-kue.
unique-kue is a kue plugin that adds a new method to kue:
jobs.create_unique_delayed(type, key, delay, options)
npm install unique-kue
kue = ;unique_kue = ;unique_kue;
jobs = kue;jobs;//the job will be saved automatically; //creating the same job, 40s later (with a 60s) delay//only the second job will be run
If you don't want a delayed job to run, you can delete it using the same key you used to create it: