memory leak on delay job what's the better alternative on rails -
i send mails delay job worker.
the web app runs on ec2 instance 2gb ram, somehow, instance runs out of memory after booting while
i guess root cause delayed job
.
what's alternative that.
can send mail in thread.new
, therefore user won't blocked on sending email
here's how run servers , worker on boot
every :reboot command " cd #{project} ; git pull origin develop " command " cd #{project} ; memcached -vv " command " cd #{project} ; bundle exec rake delayed::backend::mongoid::job.create_indexes " command " cd #{project} ; bundle exec rake jobs:work " command " cd #{project} ; bundle exec puma config/puma.rb" command " cd #{project} ; ruby app_periodic_tasks.rb" end
try sidekiq seems more solid.
Comments
Post a Comment