From: Urban Hafner Date: 2006-12-12T19:31:05+09:00 Subject: A few questions about rq (2.4.0) --RWP_PART_hafner1165919462 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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=3Dfeeder.log --log_size=3D2 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 3. 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 --RWP_PART_hafner1165919462 Content-Type: application/x-gzip; name="q.log.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="q.log.gz" H4sICD2BfkUAA3EubG9nAN1YW2/TMBR+36+wxMMYokl8y03VJBAF9YExjaI9IGTS1KPe0qR1nF34 9ThxR7eRFJK0e0BqJcft+b7v2MfnOGf8GnxFjuMOINKfCUQhJCH2LAIdigLwAgYOot8AGJ+8/wQG AxCCV6/A58mbs8nonR4ejJvtfY/W2V9zmYssBUNkE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