README.txt in rufus-scheduler-1.0.11 vs README.txt in rufus-scheduler-1.0.12
- old
+ new
@@ -42,11 +42,13 @@
job_id = scheduler.at "Sun Oct 07 14:24:01 +0900 2009" do
init_self_destruction_sequence()
end
+ scheduler.join # join the scheduler (prevents exiting)
+
For all the scheduling related information, see the Rufus::Scheduler class rdoc itself (http://rufus.rubyforge.org/rufus-scheduler/classes/Rufus/Scheduler.html) or the original OpenWFEru scheduler documentation at http://openwferu.rubyforge.org/scheduler.html
Apart from scheduling, There are also two interesting methods in this gem, they are named parse_time_string and to_time_string :
require 'rubygems'
@@ -59,9 +61,14 @@
Rufus.parse_time_string "1w2d" # => 777600.0
Rufus.to_time_string 60 # => '1m'
Rufus.to_time_string 3661 # => '1h1m1s'
Rufus.to_time_string 7 * 24 * 3600 # => '1w'
+
+
+Something about the rufus-scheduler, threads and ActiveRecord connections :
+
+http://jmettraux.wordpress.com/2008/09/14/the-scheduler-and-the-active_record/
== dependencies
None.