gitlab-org--gitlab-foss/app/workers/issue_due_scheduler_worker.rb
2018-04-17 13:59:46 +01:00

10 lines
273 B
Ruby

class IssueDueSchedulerWorker
include ApplicationWorker
include CronjobQueue
def perform
project_ids = Issue.opened.due_tomorrow.group(:project_id).pluck(:project_id).map { |id| [id] }
MailScheduler::IssueDueWorker.bulk_perform_async(project_ids)
end
end