rabbit_jobs 0.10.1 → 0.10.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 139ba8bb9fefbea5b806f3900e66311ef7f186a9
4
- data.tar.gz: 62e97aabd8bb892ab287b74ed359fbfbc4c8486a
3
+ metadata.gz: c13c4e2b5532528d82a4f4be34f263e7e22d01d7
4
+ data.tar.gz: 83010094fc2f2ae34563b66a033225335b8a9b72
5
5
  SHA512:
6
- metadata.gz: 0c42aeb47aa90125bc756bcc75d357aedf9578c573e660db7e88f24d5d250c1593d39f71d4ddc5bffe1de48e810be7c434d186cde12c119432aed43235dffe9b
7
- data.tar.gz: 19863cc75e607bdcc57479824d267be546343b1344329c9f458249628527ec01092bdc441e7ea63a5aa0bca371ab89ccfd5a0d6d22e43bd51b1aea046847bd99
6
+ metadata.gz: 65c888a3889e0ed9d77fcfa7def3e8df692bdf0452add90a2f1c509d9467537bd2cee4726b480186b408a279c2e31518a8a742d0b1e3ed63d8fa34370fc0faf7
7
+ data.tar.gz: eec99f11a41c64a3931909482642c750189135b31d1466ed653fc6da85b92cd1f78f934ee73bd4cd959acc4a519d51a2dde7a2f5da669bda6d1b4fc8b06e51fa
@@ -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 $!
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module RabbitJobs
4
- VERSION = "0.10.1"
4
+ VERSION = "0.10.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit_jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Lazureykis