How about using rubyinline to optimize the worker threads?
Currently I have a feeling that worker threads are running really slow.
On 9/4/06, hemant <gethemant at gmail.com> wrote:>
>
> Following code, should kill the worker thread, if there is a error in
> connecting to the database, right?
> but in my case it doesn''t and goes on doing other stuff. Of
course...there
> are lots of work arounds for this, but how do i make sure that, the thread
> is killed at that point of time.
>
> begin
> @dbh =
Mysql.real_connect("localhost","root","","typo_#{username}",
at sql_port, at blog_socket)
>
> rescue Exception => e
> @logger.debug("### Error connecting to the database :
#{e.to_s}")
> kill
> end
>
> --
> nothing much to talk
>
--
nothing much to talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060905/e4152d0a/attachment.html