» tagged pages
» logout

(Feed found, click Add Page to syndicate.) Error finding feed, please try again » Find feed title

A Blog Page allows you to add entries, for news or other time sensitive postings

(Login required to save to your tagged pages.)
(or Cancel)

Make further edits, (or Cancel)

(Login required to save to your tagged pages.)
(or Cancel)

(Editing anonymously: to be credited for your changes, login or register a new account)

Change Page Permissions? Changing these permissions will adjust who can modify this page.

Anonymous (change)
(change)
(or Cancel)
Upload an image from your computer:
or Copy an image from a URL:
or Erase the current icon:
Icon Preview:

or Cancel

Erase Scheduling? The contents of Scheduling page and all pages directly attached to Scheduling will be erased.

or Cancel

(Editing anonymously: to be credited for your changes, login or register a new account)

other page actions:
Scheduling

Scheduling

sorted by: recent | see : popular
Content Tagged Scheduling

rufus-scheduler 1.0.9 released


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) :


require 'rubygems'
require 'rufus/scheduler' # gem '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
  # every 10 minutes and 10 seconds
  check_score(favourite_team)
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

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 Liu, Adam and Rael for their help.

openwfe: Processi

Joomla! Extensions Directory - Room Booker

Joomla - the dynamic portal engine and content management system

Joomla: Del.icio.us bookmarks tagged Joomla

Page 1 | Next >>
Username:
Password:
(or Cancel)