Browse Source

Fixes #3581 - SessionTimeoutJob.perform_now scheduler job fails on update if scheduler process wasn't restarted

Rolf Schmidt 3 years ago
parent
commit
29ecba88aa
1 changed files with 1 additions and 0 deletions
  1. 1 0
      db/migrate/20210414000000_init_session_timeout.rb

+ 1 - 0
db/migrate/20210414000000_init_session_timeout.rb

@@ -59,6 +59,7 @@ class InitSessionTimeout < ActiveRecord::Migration[5.2]
       name:          'Cleanup dead sessions.',
       method:        'SessionTimeoutJob.perform_now',
       period:        1.minute,
+      last_run:      1.day.from_now,
       prio:          2,
       active:        true,
       updated_by_id: 1,