apiotics 0.1.41 → 0.1.42

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41a5e76ad292bbb6d37c658486738d552812774d
4
- data.tar.gz: 71eb2b0e83c89a32fad7e14f4e3338595f40f58f
3
+ metadata.gz: f3eb9f77b0a30907527cd0e4c5ed4f4d25af33e8
4
+ data.tar.gz: cda81123d6ba6528bd688089db2de94280e1cc38
5
5
  SHA512:
6
- metadata.gz: 0337d8a940b7ad7b9e874e387dc018869fb00eabf3bdb1a60af3ca487e74f6b09977eb466d63d27a9b54a97b38dd3488589c2cc5c72384da67628eb28d0fa36a
7
- data.tar.gz: c6b63f6763b1bfad98d98cbf4f93a3d3bbaa997f311b551886c55428a1a80dfff89c0b1577d99e0949b0580ecae4fcb3b29d3d504816126f27dcc9d35603d999
6
+ metadata.gz: a9e0dd6208be6fb0cba55999ec228ac39921cb300725651e6c499c3bc7ca968e34d8eb4f5bad2a7f64bab3b59ca38991f3b3ad3990e9b59c7d44e98162bddf5f
7
+ data.tar.gz: 5fdffae56310c25f5bcbf4e3f2ab4887f20de2ec5a1d5fc7d18bff6c5cdd5620ebd3ebf503adbe63ad276398d2240e57da6586631876f8f4865784ad0de74afa
@@ -92,12 +92,14 @@ module Apiotics
92
92
  klass = (worker_name.to_s + "::" + worker_name.to_s).constantize rescue nil
93
93
  unless klass == nil
94
94
  instance_ids = Hash.new
95
+ instance_id_array = Array.new
95
96
  instance_hash[worker_name].each do |instance_id,status_hash|
96
97
  if status_hash["status"] == "Active"
97
98
  instance_ids[instance_id] = status_hash
99
+ instance_id_array << instance_id
98
100
  end
99
101
  end
100
- stale_instances = klass.where.not(apiotics_instance: instance_ids)
102
+ stale_instances = klass.where.not(apiotics_instance: instance_id_array)
101
103
  stale_instances.destroy_all
102
104
  instance_ids.each do |instance_id, status_hash|
103
105
  i = klass.find_by(apiotics_instance: instance_id)
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.1.41'
2
+ VERSION = '0.1.42'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiotics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.41
4
+ version: 0.1.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation