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.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-10-27}
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.}
@@ -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
- @@scheduled_jobs[name] = rufus_scheduler.cron config['cron'] do
85
- log! "queuing #{config['class']} (#{name})"
86
- enqueue_from_config(config)
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"
@@ -55,6 +55,7 @@ module ResqueScheduler
55
55
  # create or update a schedule with the provided name and configuration
56
56
  def set_schedule(name, config)
57
57
  redis.hset(:schedules, name, encode(config))
58
+ config
58
59
  end
59
60
 
60
61
  # retrive the schedule configuration for the given name
@@ -1,3 +1,3 @@
1
1
  module ResqueScheduler
2
- Version = '1.10.10'
2
+ Version = '1.10.11'
3
3
  end
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: 43
4
+ hash: 41
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 10
9
- - 10
10
- version: 1.10.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-10-27 00:00:00 -04:00
19
+ date: 2010-11-06 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency