opee 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -24,11 +24,9 @@ Give it a try. Any comments, thoughts, or suggestions are welcome.
24
24
 
25
25
  ## <a name="release">Release Notes</a>
26
26
 
27
- ### Release 1.0.3
27
+ ### Release 1.0.4
28
28
 
29
- - Added periodic status output to info mode.
30
-
31
- - Set logger name.
29
+ - Fixed a bug in queue size reporting for the Queue class.
32
30
 
33
31
  # Plans and Notes
34
32
 
@@ -76,8 +76,8 @@ module Opee
76
76
  sleep(1.0)
77
77
  end
78
78
  rescue Exception => e
79
- Env.rescue(e)
80
79
  @busy = false
80
+ Env.rescue(e)
81
81
  end
82
82
  end
83
83
  end
@@ -206,16 +206,16 @@ module Opee
206
206
  # Waits for all Actors to complete processing. The method only returns
207
207
  # when all Actors indicate they are no longer busy.
208
208
  def self.wait_finish()
209
- next_time = Time.now + 2.0
209
+ next_time = Time.now + 5.0
210
210
  @@finish_thread = Thread.current
211
211
  @@actors.each { |a| a.wakeup() }
212
212
  while busy?
213
213
  sleep(0.2) # actors should wake up when queue is empty
214
- if Logger::INFO >= @@log.severity
214
+ if Logger::DEBUG >= @@log.severity
215
215
  now = Time.now
216
216
  if next_time <= now
217
217
  log_status()
218
- next_time = now + 2.0
218
+ next_time = now + 5.0
219
219
  end
220
220
  end
221
221
  end
@@ -26,6 +26,13 @@ module Opee
26
26
  @workers.size
27
27
  end
28
28
 
29
+ # Returns the number of requests on all three request queues, the normal,
30
+ # priority, and idle queues as well as the work queue.
31
+ # @return [Fixnum] number of queued requests
32
+ def queue_count()
33
+ @work_queue.size + super()
34
+ end
35
+
29
36
  # Returns the true if any requests are queued, a request is being
30
37
  # processed, or if there are jobs waiting on the work request queue.
31
38
  # @return [true|false] true if busy, false otherwise
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Opee
3
3
  # Current version of the module.
4
- VERSION = '1.0.3'
4
+ VERSION = '1.0.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-12 00:00:00.000000000 Z
12
+ date: 2012-07-03 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'An experimental Object-base Parallel Evaluation Environment. '
15
15
  email: peter@ohler.com