right_chimp 1.0.2 → 1.0.3
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 +4 -4
 - data/CHANGES +4 -1
 - data/lib/right_chimp/queue/ChimpQueue.rb +9 -8
 - data/lib/right_chimp/queue/ExecutionGroup.rb +1 -2
 - data/lib/right_chimp/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 1562feef06b0bcc0b1c87bd55c8421abafd7ca26
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 724add71f798b34e6a4a4e37e2611c90d60e44b0
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 5aee4d9a399b1a0b7dc99b0b05640bb372ced0015a54f61caff3f9e7b0ab01186be690d94ffa5a0c1eaeb4fa2e8f5f07c68ddb547561630cfe4a5d15953c21bb
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 6d1ec02570a46c928512df6b0387759faad9a15b7774d4ed408a5fd14f693da8d1d5af97cbe8fc5d35eb5d052062d689ea60963f2d664979a4fdea3b50f3da58
         
     | 
    
        data/CHANGES
    CHANGED
    
    | 
         @@ -96,5 +96,8 @@ Version 1.0.1 
     | 
|
| 
       96 
96 
     | 
    
         | 
| 
       97 
97 
     | 
    
         
             
            Version 1.0.2
         
     | 
| 
       98 
98 
     | 
    
         
             
            -------------
         
     | 
| 
       99 
     | 
    
         
            -
            * Add support for specifying inputs on the command line when working with arrays
         
     | 
| 
      
 99 
     | 
    
         
            +
            * Feature: Add support for specifying inputs on the command line when working with arrays
         
     | 
| 
       100 
100 
     | 
    
         | 
| 
      
 101 
     | 
    
         
            +
            Version 1.0.3
         
     | 
| 
      
 102 
     | 
    
         
            +
            -------------
         
     | 
| 
      
 103 
     | 
    
         
            +
            * Bugfix: fix race condition in chimpd serial groups
         
     | 
| 
         @@ -14,7 +14,7 @@ module Chimp 
     | 
|
| 
       14 
14 
     | 
    
         
             
                  @max_threads = 10
         
     | 
| 
       15 
15 
     | 
    
         
             
                  @workers_never_exit = true
         
     | 
| 
       16 
16 
     | 
    
         
             
                  @threads = []
         
     | 
| 
       17 
     | 
    
         
            -
                  
         
     | 
| 
      
 17 
     | 
    
         
            +
                  @semaphore = Mutex.new
         
     | 
| 
       18 
18 
     | 
    
         
             
                  self.reset!
         
     | 
| 
       19 
19 
     | 
    
         
             
                end
         
     | 
| 
       20 
20 
     | 
    
         | 
| 
         @@ -54,7 +54,6 @@ module Chimp 
     | 
|
| 
       54 
54 
     | 
    
         
             
                end
         
     | 
| 
       55 
55 
     | 
    
         | 
| 
       56 
56 
     | 
    
         
             
                def create_group(name, type = :parallel, concurrency = 1)
         
     | 
| 
       57 
     | 
    
         
            -
                  type = :parallel
         
     | 
| 
       58 
57 
     | 
    
         
             
                  Log.debug "Creating new execution group #{name} type=#{type} concurrency=#{concurrency}"
         
     | 
| 
       59 
58 
     | 
    
         
             
                  new_group = ExecutionGroupFactory.from_type(type)
         
     | 
| 
       60 
59 
     | 
    
         
             
                  new_group.group_id = name
         
     | 
| 
         @@ -67,12 +66,14 @@ module Chimp 
     | 
|
| 
       67 
66 
     | 
    
         
             
                #
         
     | 
| 
       68 
67 
     | 
    
         
             
                def shift
         
     | 
| 
       69 
68 
     | 
    
         
             
                  r = nil
         
     | 
| 
       70 
     | 
    
         
            -
                  @ 
     | 
| 
       71 
     | 
    
         
            -
                     
     | 
| 
       72 
     | 
    
         
            -
                       
     | 
| 
       73 
     | 
    
         
            -
             
     | 
| 
       74 
     | 
    
         
            -
             
     | 
| 
       75 
     | 
    
         
            -
             
     | 
| 
      
 69 
     | 
    
         
            +
                  @semaphore.synchronize do
         
     | 
| 
      
 70 
     | 
    
         
            +
                    @group.values.each do |group|
         
     | 
| 
      
 71 
     | 
    
         
            +
                      if group.ready?
         
     | 
| 
      
 72 
     | 
    
         
            +
                        r = group.shift
         
     | 
| 
      
 73 
     | 
    
         
            +
                        break
         
     | 
| 
      
 74 
     | 
    
         
            +
                      end
         
     | 
| 
      
 75 
     | 
    
         
            +
                    end      
         
     | 
| 
      
 76 
     | 
    
         
            +
                  end
         
     | 
| 
       76 
77 
     | 
    
         
             
                  return(r)
         
     | 
| 
       77 
78 
     | 
    
         
             
                end
         
     | 
| 
       78 
79 
     | 
    
         | 
    
        data/lib/right_chimp/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: right_chimp
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.3
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Christopher Deutsch
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2013-05 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2013-06-05 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: progressbar
         
     |