Displaying 1 result from an estimated 1 matches for "d_eval".
Did you mean:
d_val
2007 Feb 14
1
Scheduling in backgroundrb not working
...BackgrounDRb::Worker::RailsBase
def do_work(args)
# This method is called in it''s own new thread when you
# call new worker. args is set to :args
# Replace this with your code
#
logger.info(''I am in do work'')
end
def send_emails_to_people
@d_evals = User.find(:all,:conditions => [''id <= ?'',3]
for lop in @d_users
logger.info(''I am in loop'')
@user = User.find(:first, :conditions => [ ''id = ?'',lop.id])
UserNotify.deliver_people_emails(@user)
end
end
e...