2013-04-04 23:29:46 -05:00
|
|
|
module Jobs
|
2013-05-08 00:20:38 -05:00
|
|
|
# various consistency checks
|
2013-08-07 12:25:05 -05:00
|
|
|
class EnsureDbConsistency < Jobs::Scheduled
|
2014-02-10 23:11:40 -06:00
|
|
|
every 12.hours
|
2013-08-07 12:25:05 -05:00
|
|
|
|
2013-04-04 23:29:46 -05:00
|
|
|
def execute(args)
|
|
|
|
TopicUser.ensure_consistency!
|
2013-04-05 01:43:48 -05:00
|
|
|
UserVisit.ensure_consistency!
|
2013-05-08 00:20:38 -05:00
|
|
|
Group.refresh_automatic_groups!
|
2013-05-16 02:50:14 -05:00
|
|
|
Notification.ensure_consistency!
|
2013-07-17 01:40:15 -05:00
|
|
|
UserAction.ensure_consistency!
|
2014-06-27 14:27:26 -05:00
|
|
|
UserBadge.ensure_consistency!
|
2013-04-04 23:29:46 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|