Open abhisek1318 opened 6 years ago
@abhisek1318 Hello did you find a way to do this yet? Also looking for a way to set custom Ids for jobs
@mrfoh You can use the unique key to set a unique id instead of a custom id. And then use the remove feature to remove id that matches the unique key. What do you plan on using kue for ?
I want to use it as a job queue
Best Regards Patrick Foh
On 13 Apr 2018, 13:19 +0100, abhisek1318 notifications@github.com, wrote:
@mrfoh You can use the unique key to set a unique id instead of a custom id. And then use the remove feature to remove id that matches the unique key. What do you plan on using kue for ? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
@abhisek1318 Could you expand on how to set a unique id, please?
It would be great to be able to use deterministic/predictable keys, set via a custom id, so that then a job can be removed without needing to know the random/unique id...
Yes, it is a must-have feature. We can do it in bee-queue library by using setId function.
How to add custom id to jobs ?