20210426000000_scheduler_session_timeout.rb 297 B

12345678910
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class SchedulerSessionTimeout < ActiveRecord::Migration[5.2]
  3. def change
  4. return if !Setting.exists?(name: 'system_init_done')
  5. Scheduler.find_by(name: 'Cleanup dead sessions.').update(period: 1.hour)
  6. end
  7. end