adonis-bull
adonis-bull copied to clipboard
Missing removeRepeatable() method?
Is there a way to remove a repeatable job with the removeRepeatable()
method?
![Screenshot 2021-01-30 at 17 45 31](https://user-images.githubusercontent.com/1658644/106362406-f8d9e700-6322-11eb-998a-789752885059.png)
Hi @LeCoupa! A way to do this directly by Bull has not yet been implemented, but you can try it like this:
Bull
.getByKey('EmailPatternStatsJob')
.bull
.removeRepeatable('EmailPatternStatsJob', repeatOpts)
You need to follow the bull's own instructions: removeRepeatable, removeRepeatableByKey.
Then we can add something for the provider itself. :rocket:
Great thank you 👍
Hello, would it be possible to remove a job that is repeating every day of the week? I'm trying this way but it doesn't work
Bull .getByKey('EmailPatternStatsJob') .bull .removeRepeatable('EmailPatternStatsJob', repeatOpts)