Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing removeRepeatable() method? #66

Open
LeCoupa opened this issue Jan 30, 2021 · 3 comments
Open

Missing removeRepeatable() method? #66

LeCoupa opened this issue Jan 30, 2021 · 3 comments

Comments

@LeCoupa
Copy link
Contributor

LeCoupa commented Jan 30, 2021

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

Screenshot 2021-01-30 at 17 45 31

@HigoRibeiro
Copy link
Contributor

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.
🚀

@LeCoupa
Copy link
Contributor Author

LeCoupa commented Feb 2, 2021

Great thank you 👍

@fingunt
Copy link

fingunt commented Mar 21, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants