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

Create ActiveJob extension to disable sending a NOTIFY on enqueue and retry #814

Merged
merged 4 commits into from
Feb 6, 2023

Conversation

bensheldon
Copy link
Owner

@bensheldon bensheldon commented Jan 28, 2023

Replacement of #810 at more granular level.

@bensheldon bensheldon temporarily deployed to goodjob-notify-extensio-vhdaqd January 28, 2023 19:16 Inactive
@bensheldon bensheldon temporarily deployed to goodjob-notify-extensio-vhdaqd January 29, 2023 17:32 Inactive
@bensheldon bensheldon changed the title Create ActiveJob extension to disable sending a NOTIFY on enqueue Create ActiveJob extension to disable sending a NOTIFY on enqueue and retry Jan 29, 2023
Comment on lines 9 to 11
# class MyJob < ApplicationJob
# include GoodJob::ActiveJobExtensions::Notify
# end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean if I don't include it, that'll be sufficient to not notify? Is this considered a breaking change?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is more like "enabled by default, include this extension to change the default value to something else"

hmm, that does make me wonder if I should change it to NotifyConfiguration or something.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NotifyOptions it is!

@bensheldon bensheldon marked this pull request as ready for review February 6, 2023 05:44
@bensheldon bensheldon added the enhancement New feature or request label Feb 6, 2023
@bensheldon bensheldon merged commit 003c8a4 into main Feb 6, 2023
@bensheldon bensheldon deleted the notify_extension branch February 6, 2023 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

2 participants