Forum: Ruby on Rails BackgrounDRB Configuration

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Fe60aba68cb3d50f13ac9e13c15f84d5?d=identicon&s=25 Adam (Guest)
on 2008-10-06 01:01
(Received via mailing list)
Hi all,

I use backgrounDRB with a couple of Rails apps to handle long running
tasks. I'm having a problem with the log messages it produces. When I
start my backgrounDRB server it checks the job queue every 10 seconds
or so, and adds 3 lines to my development/production.log file to
record the SQL query. These log messages are very frustrating, as they
tend to swamp all the useful log information and make my log files
very large, very fast. Is there a way to disable them? Ideally I'd
like to stop the backgrounDRB server from producing any log messages,
unless I explicitly ask it to, or at least redirect them all to a
different file. I'd be happy enough with no log messages at all, as I
don't use it for anything too important. Is there a way to do this?
I've tried playing around with the :log: option in the
backgroundrb.yml config file, but I can't get it to turn logging off,
and there doesn't seem to be a reference for config options anywhere.

Many thanks,
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2008-10-06 02:45
(Received via mailing list)
Hi Adam,

Adam wrote:
> I use backgrounDRB with a couple of Rails apps to
> andle long running tasks. I'm having a problem with
> the log messages it produces.

You might want to ask on the BackgrounDrb list.

Their list is here

74198b06bc9e68739debfe6c23e070d3?d=identicon&s=25 Kieran P (Guest)
on 2008-10-06 02:45
(Received via mailing list)
Hello Adam,


The latest backgroundrb codebase contains the ability to turn then
queries off by setting

:persistent_disabled: true

in the backgroundrb.yml config file. Or if you use persistent queues but
don't need them executed that often, change:

:persistent_delay: 10

in the backgroundrb.yml config file to increase the time between each

Unfortunately, there isn't currently a setting to disable persistent
or increase the delay for one worker and not another (all or nothing).
for those that just use the .new_worker syntax, this will work just

See the "Installing from Git" section at how to obtain the latest

Fe60aba68cb3d50f13ac9e13c15f84d5?d=identicon&s=25 Adam (Guest)
on 2008-10-06 10:38
(Received via mailing list)
Thanks Kieran, that's exactly what I was looking for

This topic is locked and can not be replied to.