In the documentation at http://backgroundrb.rubyforge.org, it says you should
be using git://github.com/gnufied/backgroundrb.git
On Nov 30, 2009, at 3:20 AM, harini iyer wrote:
> Hi,
>
> I am a newbie to BDRB and I am kind of stuck. I installed the plugin from
>
> svn://rubyforge.org//var/svn/backgroundrb
>
> Is there a better place to get the code?
> And I wrote the following cron job in backgroundrb.yml
>
> scheduled_emails:
> :class: :EmailingWorker
> :job_key: :scheduled_emails
> :worker_method: :do_work
> :worker_method_args: nil
> :trigger_args:
> :start: <%= Time.now + 5.seconds %>
> :repeat_interval: <%= 5.seconds %>
>
> EmailingWorker is my worker class as shown
>
> class EmailingWorker < BackgrounDRb::Rails
>
> def do_work(args)
> # This method is called in it's own new thread when you
> # call new worker. args is set to :args
> logger.info('In do_work')
> hello_world
> end
>
> def hello_world
> logger.info('Hello World')
> end
> end
>
>
> When I start the backgroundrb server, nothing gets logged in the
> backgroundrb.log nor does it throw any errors. Am I missing something here? I
> am running apache and mysql servers through instant rails. I am really in
> need of some help here, I have been stuck at this point since 2 days. I would
> be thankful if someone could point out the mistake that I could be making.
>
> Thank You,
> Harini
> _______________________________________________
> Backgroundrb-devel mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
_______________________________________________
Backgroundrb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/backgroundrb-devel