isono 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/isono.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{isono}
5
- s.version = "0.2.0"
5
+ s.version = "0.2.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["axsh Ltd.", "Masahiro Fujiwara"]
9
- s.date = %q{2011-05-26}
9
+ s.date = %q{2011-05-27}
10
10
  s.default_executable = %q{cli}
11
11
  s.email = ["dev@axsh.net", "m-fujiwara@axsh.net"]
12
12
  s.executables = ["cli"]
@@ -7,6 +7,8 @@ module Isono
7
7
 
8
8
  class WorkerTerminateError < StandardError; end
9
9
  class TimeoutError < StandardError; end
10
+
11
+ attr_reader :queue
10
12
 
11
13
  def initialize(worker_num=1, name=nil, opts={})
12
14
  set_instance_logger(name)
@@ -21,7 +23,7 @@ module Isono
21
23
  begin
22
24
  while op = @queue.pop
23
25
  if @queue.size > @opts[:stucked_queue_num] && Time.now - @last_stuck_warn_at > 5.0
24
- logger.warn("too many stacked jobs: #{@queue.size}")
26
+ logger.warn("too many stucked jobs: #{@queue.size}")
25
27
  @last_stuck_warn_at = Time.now
26
28
  end
27
29
 
@@ -33,7 +35,6 @@ module Isono
33
35
  break
34
36
  rescue Exception => e
35
37
  logger.error(e)
36
- retry
37
38
  ensure
38
39
  EM.schedule {
39
40
  @worker_threads.delete(Thread.current.__id__)
data/lib/isono/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  module Isono
4
- VERSION='0.2.0'
4
+ VERSION='0.2.1'
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isono
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - axsh Ltd.
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-05-26 00:00:00 +09:00
19
+ date: 2011-05-27 00:00:00 +09:00
20
20
  default_executable: cli
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency