Displaying 1 result from an estimated 1 matches for "remove_sess".
2006 Feb 24
1
RailsCron: Trigger one time
...to trigger an event just one time at a future time. I''m using some of
your sample code to try this, but the behavior of some combinations of start,
every, and finish behave in some unpredictable ways.
3 class RailsMaintainer
4 include ActsAsBackground
5 background :remove_sessions, :start => Time.now, :every => 7.minutes,
:finish => 5.minutes.from_now
6
7
8 def self.remove_sessions
9 f = File.new("testfile", "a+")
10 fmt = "%d %b %Y at %I:%M:%S %p"
11
12 f << "The time is...