Class: Jobs::UpdateTopicUploadSecurity

Inherits:
Base
  • Object
show all
Defined in:
app/jobs/regular/update_topic_upload_security.rb

Instance Method Summary collapse

Methods inherited from Base

acquire_cluster_concurrency_lock!, clear_cluster_concurrency_lock!, cluster_concurrency, cluster_concurrency_redis_key, delayed_perform, #error_context, get_cluster_concurrency, #last_db_duration, #log, #perform, #perform_immediately

Instance Method Details

#execute(args) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'app/jobs/regular/update_topic_upload_security.rb', line 5

def execute(args)
  topic = Topic.find_by(id: args[:topic_id])
  if topic.blank?
    Rails.logger.info(
      "Could not find topic #{args[:topic_id]} for topic upload security updater.",
    )
    return
  end
  TopicUploadSecurityManager.new(topic).run
end