discourse/app/jobs/scheduled/ensure_db_consistency.rb
Sam e1f293ad66 FEATURE: new scheduler
Removed sidetiq, introduced new scheduler

- add basic UI
- add schedule discover
- add scheduling in initializer
2014-02-06 10:26:16 +11:00

15 lines
332 B
Ruby

module Jobs
# various consistency checks
class EnsureDbConsistency < Jobs::Scheduled
every 1.day
def execute(args)
TopicUser.ensure_consistency!
UserVisit.ensure_consistency!
Group.refresh_automatic_groups!
Notification.ensure_consistency!
UserAction.ensure_consistency!
end
end
end