2018-03-30 13:05:20 +00:00
|
|
|
class IssueDueSchedulerWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
include CronjobQueue
|
|
|
|
|
|
|
|
def perform
|
2018-04-17 11:44:45 +00:00
|
|
|
project_ids = Issue.opened.due_tomorrow.group(:project_id).pluck(:project_id).map { |id| [id] }
|
|
|
|
|
|
|
|
MailScheduler::IssueDueWorker.bulk_perform_async(project_ids)
|
2018-03-30 13:05:20 +00:00
|
|
|
end
|
|
|
|
end
|