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 +2 -4
- data/lib/opee/actor.rb +1 -1
- data/lib/opee/env.rb +3 -3
- data/lib/opee/queue.rb +7 -0
- data/lib/opee/version.rb +1 -1
- metadata +2 -2
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.
|
27
|
+
### Release 1.0.4
|
28
28
|
|
29
|
-
-
|
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
|
|
data/lib/opee/actor.rb
CHANGED
data/lib/opee/env.rb
CHANGED
@@ -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 +
|
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::
|
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 +
|
218
|
+
next_time = now + 5.0
|
219
219
|
end
|
220
220
|
end
|
221
221
|
end
|
data/lib/opee/queue.rb
CHANGED
@@ -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
|
data/lib/opee/version.rb
CHANGED
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.
|
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-
|
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
|