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