openwferu-scheduler 0.9.12.826 → 0.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/openwfe/util/scheduler.rb +12 -0
- metadata +2 -2
|
@@ -215,6 +215,18 @@ module OpenWFE
|
|
|
215
215
|
# This method returns a job identifier which can be used to unschedule()
|
|
216
216
|
# the job.
|
|
217
217
|
#
|
|
218
|
+
# If the job is specified in the past, it will be triggered immediately
|
|
219
|
+
# but not scheduled.
|
|
220
|
+
# To avoid the triggering, the parameter :discard_past may be set to
|
|
221
|
+
# true :
|
|
222
|
+
#
|
|
223
|
+
# jobid = scheduler.schedule_at(yesterday, :discard_past => true) do
|
|
224
|
+
# puts "you'll never read this message"
|
|
225
|
+
# end
|
|
226
|
+
#
|
|
227
|
+
# And 'jobid' will hold a nil (not scheduled).
|
|
228
|
+
#
|
|
229
|
+
#
|
|
218
230
|
def schedule_at (at, params={}, &block)
|
|
219
231
|
|
|
220
232
|
params = prepare_params(params)
|
metadata
CHANGED
|
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: openwferu-scheduler
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 0.9.
|
|
7
|
-
date: 2007-
|
|
6
|
+
version: 0.9.13
|
|
7
|
+
date: 2007-08-01 00:00:00 +09:00
|
|
8
8
|
summary: OpenWFEru scheduler for Ruby (at, cron and every)
|
|
9
9
|
require_paths:
|
|
10
10
|
- lib
|