mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 05:54:29 +08:00
e1f293ad66
Removed sidetiq, introduced new scheduler - add basic UI - add schedule discover - add scheduling in initializer
15 lines
332 B
Ruby
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
|