mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:41:31 +08:00
DEV: Remove deprecated queue_jobs site setting (#24127)
Using SiteSetting.queue_jobs= to configure job asynchronicity was deprecated here four years ago and marked for removal in version 2.9.0. This PR removes the fallback method we kept since then. The method was there because it was still being used in a bunch of plugin tests (now fixed.)
This commit is contained in:
parent
3ad8e1fbde
commit
d0915027a8
|
@ -106,14 +106,6 @@ class SiteSetting < ActiveRecord::Base
|
|||
ListController.best_period_with_topics_for(duration)
|
||||
end
|
||||
|
||||
def self.queue_jobs=(val)
|
||||
Discourse.deprecate(
|
||||
"queue_jobs is deprecated. Please use Jobs.run_immediately! instead",
|
||||
drop_from: "2.9.0",
|
||||
)
|
||||
val ? Jobs.run_later! : Jobs.run_immediately!
|
||||
end
|
||||
|
||||
def self.email_polling_enabled?
|
||||
SiteSetting.manual_polling_enabled? || SiteSetting.pop3_polling_enabled? ||
|
||||
DiscoursePluginRegistry.mail_pollers.any?(&:enabled?)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require "rails_helper"
|
||||
|
||||
describe PrettyText do
|
||||
before { SiteSetting.queue_jobs = false }
|
||||
before { Jobs.run_immediately! }
|
||||
|
||||
it "can be disabled" do
|
||||
SiteSetting.enable_markdown_footnotes = false
|
||||
|
|
Loading…
Reference in New Issue
Block a user