# A few questions about rq (2.4.0)

**URL:** <https://www.ruby-forum.com/t/a-few-questions-about-rq-2-4-0/79129>\
**Category:** Ruby\
**Created:** [December 12, 2006, 11:31am UTC](https://www.ruby-forum.com/t/a-few-questions-about-rq-2-4-0/79129 "2006-12-12T11:31:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Urban\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/e95f7d/32.png) [@Urban\_H](https://www.ruby-forum.com/u/Urban_H)\
**Post date:** [December 12, 2006, 11:31am UTC](https://www.ruby-forum.com/t/a-few-questions-about-rq-2-4-0/79129/1 "2006-12-12T11:31:50Z")

</div>

Hej!

I’m not sure this mailing list is the best place to as questions about  
rq (ruby queue), but I didn’t want to to bother Ara personally  
(especially since no one else would know about the answers I got).

1. Somehow feeding doesn’t work in daemon mode. If I normally start a  
feeder (“rq feed”) everything is ok and the jobs get processed, but  
when I run the feeder as a daemon (“rq start”) somehow the drb  
connection is broken (I guess). See the attached log file (if it gets  
through).

2. How is --log\_size supposed to work? If I use it like this:  
$ rq feed --log=feeder.log --log\_size=2  
I get the following error message:  
/sw/lib/ruby/1.8/logger.rb:510:in `write': Shifting failed. comparison of Fixnum with String failed (Logger::ShiftingError) from /sw/lib/ruby/1.8/monitor.rb:229:in`synchronize’  
from /sw/lib/ruby/1.8/logger.rb:505:in `write' from /sw/lib/ruby/1.8/logger.rb:335:in`add’  
from /sw/lib/ruby/1.8/logger.rb:401:in `error' from /sw/lib/ruby/site_ruby/1.8/rq-2.4.0/logging.rb:57:in`error’  
from /sw/lib/ruby/site\_ruby/1.8/rq-2.4.0/logging.rb:64:in  
`logerr' from /sw/bin/rq:260:in`initialize’  
from /sw/bin/rq:823

This is on Mac OS X Tiger using Ruby 1.8.4 and rq 2.4.0

1. Is YAML input to rq intended to be used by any other program than rq  
itself? I’m probably going to submit jobs to the queue from a script,  
so using YAML seemed like a good idea (i.e. setting the priority of a  
job and if it is restartable, …). But the obvious of just converting  
an array of hashes into YAML didn’t work.

Urban
