seanwalbran-rpm_contrib 2.1.6.7 → 2.1.6.8

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ * Version 2.1.6.8
2
+ - In resque, only send data from the parent process worker loop, because child processes were
3
+ always sending data, because NewRelic agent never calls update_last_sent. Just
4
+ save the data in child resque processes.
5
+
1
6
  * Version 2.1.6.7
2
7
  - Try starting worker loop in parent process, not child process.
3
8
 
@@ -28,8 +28,7 @@ module Resque
28
28
  yield(*args)
29
29
  end
30
30
  ensure
31
- worker_loop = NewRelic::Agent.agent.started? ? NewRelic::Agent.agent.instance_variable_get(:@worker_loop) : nil
32
- worker_loop.run_task if worker_loop
31
+ NewRelic::Agent.save_data if NewRelic::Agent.agent.started?
33
32
  end
34
33
  end
35
34
  end
@@ -78,8 +77,5 @@ DependencyDetection.defer do
78
77
  NewRelic::Agent.after_fork(:force_reconnect => true)
79
78
  end
80
79
 
81
- # ::Resque.after_fork do
82
- # NewRelic::Agent.after_fork(:force_reconnect => false)
83
- # end
84
80
  end
85
81
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seanwalbran-rpm_contrib
3
3
  version: !ruby/object:Gem::Version
4
- hash: 113
4
+ hash: 111
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
9
  - 6
10
- - 7
11
- version: 2.1.6.7
10
+ - 8
11
+ version: 2.1.6.8
12
12
  platform: ruby
13
13
  authors:
14
14
  - Bill Kayser