cf_light_api 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cf_light_api +2 -0
- data/lib/cf_light_api/worker.rb +4 -4
- 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: 55007b1bca390e4d2ee89d8afd70ab07afac0198
|
4
|
+
data.tar.gz: 5985fa004f7a49c1a72b9ee119206e871ecab1e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a78ea8ca53b2774edbd4bede5264a408088c3a514c81e5114386c1b52b7adf613568c514f94ef978d2c6a90797083769229d2ba5c7f1975c470de86abaa45f69
|
7
|
+
data.tar.gz: cd31210e3cffc3b61cafbca46afb4312225a177f9575b03623118e6d66a73ba71160a7fd35a65f6906d3a7c931ef9aa72f58b0ebb5c79d878b307e89ab981a54
|
data/bin/cf_light_api
CHANGED
data/lib/cf_light_api/worker.rb
CHANGED
@@ -9,7 +9,7 @@ require 'parallel'
|
|
9
9
|
end
|
10
10
|
|
11
11
|
scheduler = Rufus::Scheduler.new
|
12
|
-
scheduler.every '5m', :first_in => '5s', :overlap => false, :timeout => '
|
12
|
+
scheduler.every '5m', :first_in => '5s', :overlap => false, :timeout => '5m' do
|
13
13
|
begin
|
14
14
|
if locked?
|
15
15
|
puts "[cf_light_api:worker] Data update is already running in another worker, skipping..."
|
@@ -36,9 +36,9 @@ scheduler.every '5m', :first_in => '5s', :overlap => false, :timeout => '15m' do
|
|
36
36
|
}
|
37
37
|
end.flatten
|
38
38
|
|
39
|
-
app_data = Parallel.map(
|
40
|
-
Parallel.map(
|
41
|
-
Parallel.map(
|
39
|
+
app_data = Parallel.map(cf_client.organizations, :in_processes => 4) do |org|
|
40
|
+
Parallel.map(org.spaces, :in_processes => 4) do |space|
|
41
|
+
Parallel.map(space.apps, :in_processes => 4) do |app|
|
42
42
|
begin
|
43
43
|
# It's possible for an app to have been terminated before this stage is reached.
|
44
44
|
format_app_data(app, org.name, space.name)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cf_light_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Springer Platform Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cfoundry
|