Displaying 2 results from an estimated 2 matches for "run_work".
Did you mean:
gruntwork
2006 Sep 23
6
Connection to backgroundrb is lost when exiting action method
Hey.
I have a very annoying problem, and was wondering what is wrong.
Suppose I have backgroundrb running, and then I have an action in some
controller. In the action I define a worker. When leaving the action,
suddenly the connection to backgroundrb is lost:
DRb URI: druby://localhost:22222
Pid: 3976
Autostart...
done
druby://localhost:42531 - #<Errno::EBADF: Bad file descriptor -
2007 Mar 07
10
MiddleMan.worker blocks?
...;'csv_report'',''/var/tmp'')
@path = io.path
xml = Builder::XmlMarkup.new(:indent => 2, :target => io)
xml.instruct!
(dtd_only.nil? or !dtd_only) ? data(xml,constraints) : dtd(xml)
io.close
@progress = 100
end
...
end
Within the run_worker, the data method is where the bulk of the time is
spent, though to my understanding, what I do in that method should not be
able to impact the blocking state of the queries to get_progress. The data
method does ALOT of postgresql interaction to extract the data needed to
build the report, all...