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

Version Path
mumuki-laboratory-6.4.1 lib/tasks/users.rake
mumuki-laboratory-6.4.0 lib/tasks/users.rake
mumuki-laboratory-6.2.0 lib/tasks/users.rake
mumuki-laboratory-6.1.5 lib/tasks/users.rake
mumuki-laboratory-6.0.4 lib/tasks/users.rake
mumuki-laboratory-6.1.4 lib/tasks/users.rake
mumuki-laboratory-6.1.3 lib/tasks/users.rake
mumuki-laboratory-6.0.3 lib/tasks/users.rake
mumuki-laboratory-6.1.2 lib/tasks/users.rake
mumuki-laboratory-6.1.1 lib/tasks/users.rake
mumuki-laboratory-6.1.0 lib/tasks/users.rake
mumuki-laboratory-6.0.2 lib/tasks/users.rake
mumuki-laboratory-6.0.1 lib/tasks/users.rake
mumuki-laboratory-6.0.0 lib/tasks/users.rake
mumuki-laboratory-5.13.0 lib/tasks/users.rake
mumuki-laboratory-5.12.1 lib/tasks/users.rake
mumuki-laboratory-5.12.0 lib/tasks/users.rake
mumuki-laboratory-5.11.0 lib/tasks/users.rake
mumuki-laboratory-5.10.4 lib/tasks/users.rake
mumuki-laboratory-5.10.3 lib/tasks/users.rake