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

Missing removeRepeatable() method?

Open LeCoupa opened this issue 3 years ago • 3 comments

Is there a way to remove a repeatable job with the removeRepeatable() method?

Screenshot 2021-01-30 at 17 45 31

LeCoupa avatar Jan 30 '21 16:01 LeCoupa

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:

HigoRibeiro avatar Feb 02 '21 12:02 HigoRibeiro

Great thank you 👍

LeCoupa avatar Feb 02 '21 12:02 LeCoupa

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)

fingunt avatar Mar 21 '21 18:03 fingunt