rabbit_jobs 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rabbit_jobs/job.rb +2 -2
- data/lib/rabbit_jobs/scheduler.rb +1 -1
- data/lib/rabbit_jobs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c13c4e2b5532528d82a4f4be34f263e7e22d01d7
|
4
|
+
data.tar.gz: 83010094fc2f2ae34563b66a033225335b8a9b72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65c888a3889e0ed9d77fcfa7def3e8df692bdf0452add90a2f1c509d9467537bd2cee4726b480186b408a279c2e31518a8a742d0b1e3ed63d8fa34370fc0faf7
|
7
|
+
data.tar.gz: eec99f11a41c64a3931909482642c750189135b31d1466ed653fc6da85b92cd1f78f934ee73bd4cd959acc4a519d51a2dde7a2f5da669bda6d1b4fc8b06e51fa
|
data/lib/rabbit_jobs/job.rb
CHANGED
@@ -20,8 +20,8 @@ module RabbitJobs
|
|
20
20
|
begin
|
21
21
|
ret = nil
|
22
22
|
execution_time = Benchmark.measure { ret = perform(*params) }
|
23
|
-
RabbitJobs.logger.info short_message: self.to_ruby_string, _execution_time: execution_time.to_s.strip
|
24
|
-
rescue
|
23
|
+
RabbitJobs.logger.info short_message: "Completed: #{self.to_ruby_string}", _execution_time: execution_time.to_s.strip
|
24
|
+
rescue ScriptError, StandardError
|
25
25
|
log_job_error($!)
|
26
26
|
run_on_error_hooks($!)
|
27
27
|
end
|
@@ -48,8 +48,8 @@ module RabbitJobs
|
|
48
48
|
klass_name = config[:class]
|
49
49
|
params = [args].flatten
|
50
50
|
|
51
|
-
RabbitJobs.logger.info "publishing #{config} at #{Time.now}"
|
52
51
|
RabbitJobs.publish_to(config[:queue], klass_name, *params)
|
52
|
+
RabbitJobs.logger.info "Published: #{config} at #{Time.now}"
|
53
53
|
rescue
|
54
54
|
RabbitJobs.logger.warn "Failed to publish #{klass_name}:\n #{$!}\n params = #{params.inspect}"
|
55
55
|
RabbitJobs.logger.error $!
|
data/lib/rabbit_jobs/version.rb
CHANGED