[Backgroundrb-devel] add_timer
Ramon Miguel M. Tayag
ramon.tayag at gmail.com
Tue Sep 9 05:38:06 EDT 2008
Hi everyone,
I found this post about reading more about add_timer from a while
back: http://www.mail-archive.com/backgroundrb-devel@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
More information about the Backgroundrb-devel
mailing list