beanstalker 0.5.2 → 0.5.3
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 +1 -1
- data/lib/beanstalker/worker.rb +3 -3
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.3
|
data/beanstalker.gemspec
CHANGED
data/lib/beanstalker/worker.rb
CHANGED
|
@@ -147,17 +147,17 @@ class Beanstalker::Worker
|
|
|
147
147
|
|
|
148
148
|
def dispatch(job)
|
|
149
149
|
ActiveRecord::Base.verify_active_connections!
|
|
150
|
-
|
|
150
|
+
logger.info "Got job: #{get_job_body(job).inspect}"
|
|
151
151
|
if rails_job?(job)
|
|
152
152
|
run_ao_job(job)
|
|
153
153
|
elsif mapped_job?(job)
|
|
154
154
|
run_mapped_job(job)
|
|
155
155
|
else
|
|
156
|
-
|
|
156
|
+
logger.error "Job #{job.inspect} cannot be processed... deleteing"
|
|
157
157
|
job.delete
|
|
158
158
|
end
|
|
159
159
|
rescue Exception => e
|
|
160
|
-
|
|
160
|
+
logger.error "Exception: #{e.inspect}... Bury job"
|
|
161
161
|
job.bury
|
|
162
162
|
end
|
|
163
163
|
|
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: 13
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 0.5.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.5.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Gleb Pomykalov
|