backgroundrb - workers firing twice?

Chris Stump wrote:

I have a very similar setup and I can confirm behavior. Not sure why the
workers fire twice. Here's a solution that doesn't rely upon files:

   @@running=false

   def do_work(args)
     if not @@running
       @@running=true
       <do whatever you need to do>
       @@running=false
     end
   end

Thanks Chris it's really a very good solution.