Skip to content
Permalink
f837f65c0a
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
7 lines (7 sloc) 216 Bytes
class CleanupEvents < ApplicationJob
def perform
Event::Base.transaction do
Event::Base.where(project_logged: true, mails_sent: true, queued: true, undone_jobs: 0).lock(true).delete_all
end
end
end