A few questions about rq (2.4.0)


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

  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:insynchronize’
    from /sw/lib/ruby/1.8/logger.rb:505:in write' from /sw/lib/ruby/1.8/logger.rb:335:inadd’
    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:inerror’
    from /sw/lib/ruby/site_ruby/1.8/rq-2.4.0/logging.rb:64:in
    logerr' from /sw/bin/rq:260:ininitialize’
    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.