resque-scheduler 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.md +6 -0
- data/lib/resque/scheduler.rb +7 -3
- data/lib/resque_scheduler/version.rb +1 -1
- metadata +2 -2
data/HISTORY.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 1.0.3 (2010-02-11)
|
2
|
+
|
3
|
+
* Added support for scheduled jobs with empty crons. This is helpful to have
|
4
|
+
jobs that you don't want on a schedule, but do want to be able to queue by
|
5
|
+
clicking a button.
|
6
|
+
|
1
7
|
## 1.0.2 (2010-02-?)
|
2
8
|
|
3
9
|
* Change Delayed Job tab to display job details if only 1 job exists
|
data/lib/resque/scheduler.rb
CHANGED
@@ -50,9 +50,13 @@ module Resque
|
|
50
50
|
|
51
51
|
Resque.schedule.each do |name, config|
|
52
52
|
log! "Scheduling #{name} "
|
53
|
-
|
54
|
-
|
55
|
-
|
53
|
+
if !config['cron'].nil? && config['cron'].length > 0
|
54
|
+
rufus_scheduler.cron config['cron'] do
|
55
|
+
log! "queuing #{config['class']} (#{name})"
|
56
|
+
enqueue_from_config(config)
|
57
|
+
end
|
58
|
+
else
|
59
|
+
log! "not cron found for #{config['class']} (#{name}) - skipping"
|
56
60
|
end
|
57
61
|
end
|
58
62
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben VandenBos
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-11 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|