beanstalker 0.5.4 → 0.5.5
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/VERSION +1 -1
- data/beanstalker.gemspec +2 -2
- data/lib/beanstalker/worker.rb +5 -1
- metadata +4 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.5
|
data/beanstalker.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{beanstalker}
|
|
8
|
-
s.version = "0.5.
|
|
8
|
+
s.version = "0.5.5"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Gleb Pomykalov"]
|
|
12
|
-
s.date = %q{2011-03-
|
|
12
|
+
s.date = %q{2011-03-10}
|
|
13
13
|
s.description = %q{Beanstalker is a tool for executing long tasks in background in our rails application.}
|
|
14
14
|
s.email = %q{glebpom@gmail.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/beanstalker/worker.rb
CHANGED
|
@@ -191,7 +191,11 @@ class Beanstalker::Worker
|
|
|
191
191
|
if rails_job?(job)
|
|
192
192
|
class_name = get_job_body(job)[:data][:class]
|
|
193
193
|
if class_name
|
|
194
|
-
|
|
194
|
+
begin
|
|
195
|
+
klass = Object.const_get(class_name)
|
|
196
|
+
rescue Exception => e
|
|
197
|
+
klass = nil
|
|
198
|
+
end
|
|
195
199
|
error_handler = class_error_handler(klass)
|
|
196
200
|
if error_handler.is_a?(Proc)
|
|
197
201
|
Daemonizer.logger.info "Running custom error handler for class #{class_name}, job = #{job.id}"
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beanstalker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 1
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 0.5.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.5.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Gleb Pomykalov
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-03-
|
|
18
|
+
date: 2011-03-10 00:00:00 +01:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|