This should defintely work, did you check if block inside is throwing
some errors?
Run backgroundrb without daemonizing it and add some puts statements
inside the block and see if they are printing. Also, you should check
the timer value (how many seconds!)
On Tue, Sep 9, 2008 at 3:08 PM, Ramon Miguel M. Tayag
<ramon.tayag at gmail.com> wrote:> Hi everyone,
>
> I found this post about reading more about add_timer from a while
> back: http://www.mail-archive.com/backgroundrb-devel at
rubyforge.org/msg00507.html
>
> However... I really can''t find it :o I looked at the page and the
> manual. Also, the "Look at at beginning of the docs" -- is that
the
> manual? Coz I looked there too :o
>
> My problem is that I can''t seem to get this
> set_non_winners_as_rejected method to work: http://pastie.org/268758.
> When I run it, nothing gets written into the bdrb_job_queues table in
> the database. I also tried typing this straight into the console:
>>> v = VotingPeriod.first
> => #<VotingPeriod id: 1, starts_at: "2008-09-09 09:30:12",
ends_at:
> "2008-09-09 09:45:00", created_at: "2008-09-08
18:34:31", updated_at:
> "2008-09-09 09:29:12", user_id: 1>
>>>
MiddleMan.worker(:voting_period_worker).async_set_non_winners_as_rejected(:arg
=> v.id)
> => nil
>
> v.ends_at - Time.now returns the proper time in seconds that I want
> the timer to execute.
>
> What should I do next to debug it?
>
> Thanks,
> --
> Ramon Tayag
> _______________________________________________
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
>
--
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.
http://gnufied.org