Displaying 1 result from an estimated 1 matches for "drillremindersend".
Did you mean:
drillremindersender
2007 Jan 27
1
Memory leaks in backgroundrb
...y to see that loads of threads and slaves are present in the
process. It also has references to 691 workers!
In case there might be some problems with my worker here''s its full code:
class DrillReminderWorker < BackgrounDRb::Worker::RailsBase
def do_work(args)
logger.info "DrillReminderSender started"
t = Time.now.gmtime
tsec = t.sec + t.min*60 + t.hour*60*60
logger.info "utc seconds: #{tsec}"
User.find_all_to_send_drill_reminder(tsec).each do |u|
Notification.deliver_drill_reminder(u)
u.update_attributes!(
:drill_notification_last_...