Sha256: abde3a00dfd0765c5b8e444d9dbf8a254c7de6e5133e7ec287a040296943a30b
Contents?: true
Size: 285 Bytes
Versions: 35
Compression:
Stored size: 285 Bytes
Contents
namespace :users do task notify_reminder: :environment do BATCH_SIZE = ENV['MUMUKI_JOB_BATCH_SIZE']&.to_i || 1000 User.remindable.find_each(batch_size: BATCH_SIZE) do |user| user.try_remind_with_lock! end if ApplicationMailer.environment_variables_set? end end
Version data entries
35 entries across 35 versions & 1 rubygems