Class: Jobs::ClearSlowMode
- Inherits:
-
TopicTimerBase
- Object
- Base
- TopicTimerBase
- Jobs::ClearSlowMode
- Defined in:
- app/jobs/regular/clear_slow_mode.rb
Instance Method Summary collapse
Methods inherited from TopicTimerBase
Methods inherited from Base
acquire_cluster_concurrency_lock!, clear_cluster_concurrency_lock!, cluster_concurrency, cluster_concurrency_redis_key, delayed_perform, #error_context, #execute, get_cluster_concurrency, #last_db_duration, #log, #perform, #perform_immediately
Instance Method Details
#execute_timer_action(topic_timer, topic) ⇒ Object
5 6 7 8 |
# File 'app/jobs/regular/clear_slow_mode.rb', line 5 def execute_timer_action(topic_timer, topic) topic.update!(slow_mode_seconds: 0) topic_timer.trash!(Discourse.system_user) end |