Skip to content

Commit

Permalink
DBP-830 Join scheduler thread
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncolincap committed Aug 26, 2024
1 parent cd8fc4c commit 3171212
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,5 @@ def self.disable_inactive_users
else
Rails.logger.info 'No inactive users to block.'
end
Rails.logger.flush
end
end
2 changes: 2 additions & 0 deletions config/initializers/scheduler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
scheduler.cron '0 * * * *' do
User.disable_inactive_users
end

scheduler.join

0 comments on commit 3171212

Please sign in to comment.