20210426000000_scheduler_session_timeout.rb 220 B

12345678
  1. class SchedulerSessionTimeout < ActiveRecord::Migration[5.2]
  2. def change
  3. return if !Setting.exists?(name: 'system_init_done')
  4. Scheduler.find_by(name: 'Cleanup dead sessions.').update(period: 1.hour)
  5. end
  6. end