Displaying 2 results from an estimated 2 matches for "serverlogger".
2007 Apr 24
0
Bug in Rails worker creation through scheduler
...g in the log files, no errors on
the console, no hints whatsoever about what went wrong. So I filled
up the code with logging statements and tracked down the problem to
line 48 of server/lib/backgroundrb/scheduler.rb.
The following statement in that line is bogus:
47:rescue
48: BackgrounDRb::ServerLogger.log_exception(''scheduler'', e)
49:end
Since there''s no e defined in the rescue statement, the above
statement fails badly and therefore nothing gets logged anywhere.
The fix is to either use this style:
47:rescue
48: BackgrounDRb::ServerLogger.log_exception(''s...
2006 Dec 15
3
can Timeout::timeout(...) be used in a Worker ?
Hi ,
I was wondering if anyone else has tried to use the Timeout::timeout
method in a backgroundrb Worker and had Timeout raise an exception
after the allotted amount of time .
I ask because i have written a test script to make sure Timeout would
work . I have tested the script by directly feeding it to ruby with :
$ ruby test_script.rb
and piping the script to the rails console:
$