-
Notifications
You must be signed in to change notification settings - Fork 166
Remove inline RISC job #10826
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
Remove inline RISC job #10826
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,18 +40,12 @@ def url_options | |
| def deliver_one(service_provider) | ||
| deliver_local(service_provider) if IdentityConfig.store.risc_notifications_local_enabled | ||
|
|
||
| job_arguments = { | ||
| RiscDeliveryJob.perform_later( | ||
| push_notification_url: service_provider.push_notification_url, | ||
| jwt: jwt(service_provider), | ||
| event_type: event.event_type, | ||
| issuer: service_provider.issuer, | ||
| } | ||
|
|
||
| if IdentityConfig.store.risc_notifications_active_job_enabled | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this was the last usage of this feature flag, so now let's fully remove it everywhere by taking it out of
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was what I intended with my commit comment -> How -> 3rd bullet. Did you mean something else?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Feature flags are safe to remove in the codebase in the same PR that stop using them, so no need for a second PR
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it, I should have remembered that. |
||
| RiscDeliveryJob.perform_later(**job_arguments) | ||
| else | ||
| RiscDeliveryJob.perform_now(**job_arguments) | ||
| end | ||
| ) | ||
| end | ||
|
|
||
| def deliver_local(service_provider) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we're following through with this we should also update the logic in
http_push.rband remove therisc_notifications_active_job_enabledfeature flag as wellThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, I saw that when the tests failed on CI. Looking into it.