16 lines
440 B
Ruby
16 lines
440 B
Ruby
module Emails
|
|
class EnqueueDigestWorker
|
|
include Sidekiq::Job
|
|
|
|
sidekiq_options queue: :medium_priority, retry: 15
|
|
|
|
def perform
|
|
# Temporary
|
|
# @sre:mstruve This is temporary until we have an efficient way to handle this job
|
|
# for our large DEV community. Smaller Forems should be able to handle it no problem
|
|
return if ForemInstance.dev_to?
|
|
|
|
EmailDigest.send_periodic_digest_email
|
|
end
|
|
end
|
|
end
|