mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 19:12:45 +08:00
DEV: prevents redefinition of various constants (#8199)
CLEANUP_GRACE_PERIOD MAX_AWARDED POLL_MAILBOX_TIMEOUT_ERROR_KEY
This commit is contained in:
parent
cb0443792b
commit
b6ef473a31
|
@ -4,7 +4,7 @@ module Jobs
|
|||
class GrantNewUserOfTheMonthBadges < ::Jobs::Scheduled
|
||||
every 1.day
|
||||
|
||||
MAX_AWARDED = 2
|
||||
MAX_AWARDED ||= 2
|
||||
|
||||
def execute(args)
|
||||
badge = Badge.find(Badge::NewUserOfTheMonth)
|
||||
|
|
|
@ -23,7 +23,7 @@ module Jobs
|
|||
Email::Processor.process!(popmail.pop)
|
||||
end
|
||||
|
||||
POLL_MAILBOX_TIMEOUT_ERROR_KEY = "poll_mailbox_timeout_error_key".freeze
|
||||
POLL_MAILBOX_TIMEOUT_ERROR_KEY ||= "poll_mailbox_timeout_error_key".freeze
|
||||
|
||||
def poll_pop3
|
||||
pop3 = Net::POP3.new(SiteSetting.pop3_polling_host, SiteSetting.pop3_polling_port)
|
||||
|
|
|
@ -5,7 +5,7 @@ module Jobs
|
|||
class ReindexSearch < ::Jobs::Scheduled
|
||||
every 2.hours
|
||||
|
||||
CLEANUP_GRACE_PERIOD = 1.day.ago
|
||||
CLEANUP_GRACE_PERIOD ||= 1.day.ago
|
||||
|
||||
def execute(args)
|
||||
rebuild_problem_topics
|
||||
|
|
Loading…
Reference in New Issue
Block a user