rufus-scheduler 1.0.9 released

1 view
Skip to first unread message

John Mettraux

unread,
Jul 18, 2008, 1:01:05 AM7/18/08
to ruby-community...@googlegroups.com
Hi,

just released the "rufus-scheduler" 1.0.9 [gem].

It fixes a few bugs, mainly making jobs visible via get_job(job_id)
even when they are right in the middle of execution.

It also introduces 4 new shorter aliases : "at", "in", "every" and
"cron" (to "schedule_at", "schedule_in", "schedule_every" and
"schedule" respectively) :

---8<---
require 'rubygems'
require 'rufus/scheduler'

scheduler = Rufus::Scheduler.start_new

scheduler.in("3d") do
regenerate_monthly_report()
end
#
# will call the regenerate_monthly_report method
# in 3 days from now

scheduler.every "10m10s" do
check_score(favourite_team) # every 10 minutes and 10 seconds
end

scheduler.cron "0 22 * * 1-5" do
log.info "activating security system..."
activate_security_system()
end

scheduler.at "Sun Oct 07 14:24:01 +0900 2009" do
init_self_destruction_sequence()
end
--->8---


Changelog :

- bug #21262 : brought back (proxy) duration_to_f to Rufus::Scheduler
- todo #21251 : added 'at', 'cron', 'in' and 'every' shortcut methods
- todo #21203 : keeping track of At and EveryJob until last trigger is over
- todo #20823 : now raising exception in case of bad 'at' parameter
- todo #21194 : added trigger_thread to Job class
- todo #21193 : spinned CronLine out to rufus/cronline.rb
- bug #20893 : sometimes unschedule(every_job) not working when job was
active (performing). Fixed.


Links :

http://github.com/jmettraux/rufus-scheduler
http://rubyforge.org/projects/rufus/
http://rufus.rubyforge.org/rufus-scheduler/files/README_txt.html
http://groups.google.com/group/rufus-ruby


Thanks to Sean, Adam and Rael for their help.


Cheers,

--
John Mettraux - http://jmettraux.wordpress.com

Reply all
Reply to author
Forward
0 new messages