brianjlandau-resque-scheduler 1.10.10 → 1.10.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{brianjlandau-resque-scheduler}
|
8
|
-
s.version = "1.10.
|
8
|
+
s.version = "1.10.11"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ben VandenBos", "Brian Landau"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-11-06}
|
13
13
|
s.description = %q{Light weight job scheduling on top of Resque.
|
14
14
|
Adds methods enqueue_at/enqueue_in to schedule jobs in the future.
|
15
15
|
Also supports queueing jobs on a fixed, cron-like schedule.}
|
data/lib/resque/scheduler.rb
CHANGED
@@ -81,9 +81,13 @@ module Resque
|
|
81
81
|
if config['rails_env'].nil? || rails_env_matches?(config)
|
82
82
|
log! "Scheduling #{name} "
|
83
83
|
if !config['cron'].nil? && config['cron'].length > 0
|
84
|
-
|
85
|
-
|
86
|
-
|
84
|
+
begin
|
85
|
+
@@scheduled_jobs[name] = rufus_scheduler.cron config['cron'] do
|
86
|
+
log! "queuing #{config['class']} (#{name})"
|
87
|
+
enqueue_from_config(config)
|
88
|
+
end
|
89
|
+
rescue Exception => e
|
90
|
+
log! "#{e.class.name}: #{e.message}"
|
87
91
|
end
|
88
92
|
else
|
89
93
|
log! "no cron found for #{config['class']} (#{name}) - skipping"
|
data/lib/resque_scheduler.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brianjlandau-resque-scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 41
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 10
|
9
|
-
-
|
10
|
-
version: 1.10.
|
9
|
+
- 11
|
10
|
+
version: 1.10.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ben VandenBos
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-11-06 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|