Verify yourself to prove that you are not a ROBOT! After verification the page will apear. Thanks for understanding.
I'm using tasks to complete background jobs. For example my remove_badges.rake file in lib/tasks :
desc "Remove expired badges rake task"
task :remove_expired_badges => :environment do
message = "remove_expired_badges is running now."
BadgeHost.all.each do |b|
if b.expire_at < Time.now
puts "An expired badge successfully deleted."
host = b.host
badge = b.badge
puts "Failed to destroy expired badge."
First mail is to myself for being sure this task is running.
Second mail is to user to inform he lost his badge.
I've other tasks also, in one of them mails are working fine.
But in other tasks, mails are not sent. Only if I delete deliver_later and use deliver, mails are sent.
I dont want to use deliver, because it is making a pause until the mail sent.
Is there is a reason you know causing deliver_later not working good with rails tasks?