Backgroundrb works well on windows, but it does not work on my production system(CentOS), it just prints out the follow log, but the test worker has never been call:( Very strange, any idea? log: DRb URI: druby://localhost:22222 Pid: 4327 Autostart... test_worker done
code: class TestWorker < BackgrounDRb::Rails repeat_every 1.minutes first_run Time.now def do_work(args) puts "[test worker] do_work..."
@logger.debug "[test worker] do_work..."
You can use puts in a worker like that. You need to use @logger.