pampa_workers 1.1.32 → 1.1.35

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1d5ea573e4fdc4675bd12e0e97104f1d336fe29
4
- data.tar.gz: db6dee32dfa05787117ee00ee67f965deaff2621
3
+ metadata.gz: 84dd33be7f455c020f37d956ac92a489d8c5e358
4
+ data.tar.gz: 461788a7bd17a559d60fdcee7204903183e6c2ea
5
5
  SHA512:
6
- metadata.gz: e0ec6c8ab6712c409dcc97c254a4a78cbc0678cd2b605150f1befea64ebebb1ba270d30c69e12a83da1ce4784032174ed7e66d5007694bbb04aadae0665b9726
7
- data.tar.gz: d160334f0164fcdbde1d6231bd9309d829c5ca0cd8772e0bb8a9d3c775078e4e0f7890b3fcc900ed562b1efd729893efba107166e51f3630eb0d7e1d077562e2
6
+ metadata.gz: b6b4b6d6d2f156d8c6fa2e1a647f6f0d7c55031477cce3e08d146fa2bc2213bf21c56868303edfe1171bf86a26f8341c78ea7405751dfaac055b762e178fb36b
7
+ data.tar.gz: c69bacd4f7437b41b2830c469bfba8a2c46b4b83bb1f1689f9d967c8e64f1f951daf62cf9dca80b4cc9a619753dc490d155265ac5d55e2aeef8d88911828d1e7
@@ -36,6 +36,11 @@ module BlackStack
36
36
 
37
37
  # consulto a la central por la division asignada
38
38
  url = "#{BlackStack::Pampa::api_url}/api1.3/pampa/hello.json"
39
+ #puts
40
+ #puts
41
+ #puts "url: #{url}"
42
+ #puts
43
+ #puts
39
44
  logger.logs("Hello to the central... ")
40
45
  res = BlackStack::Netting::call_post(url, {
41
46
  'api_key' => BlackStack::Pampa::api_key,
@@ -47,8 +52,8 @@ module BlackStack
47
52
  else
48
53
  self.logger.done
49
54
 
50
- logger.logs("Get worker data... ")
51
55
  url = "#{BlackStack::Pampa::api_url}/api1.3/pampa/get.json"
56
+ logger.logs("Get worker data (#{url})... ")
52
57
  res = BlackStack::Netting::call_post(url, {
53
58
  'api_key' => BlackStack::Pampa::api_key,
54
59
  'name' => self.fullWorkerName }.merge( BlackStack::RemoteHost.new.poll )
data/lib/myprocess.rb CHANGED
@@ -90,6 +90,11 @@ module BlackStack
90
90
  def hello()
91
91
  # me notifico a la central. obtengo asignacion si ya la tenia
92
92
  url = "#{BlackStack::Pampa::api_url}/api1.3/pampa/hello.json"
93
+ #puts
94
+ #puts
95
+ #puts "url: #{url}"
96
+ #puts
97
+ #puts
93
98
  res = BlackStack::Netting::call_post(url, {
94
99
  'api_key' => BlackStack::Pampa::api_key,
95
100
  'name' => self.fullWorkerName }.merge( BlackStack::RemoteHost.new.poll )
@@ -104,6 +109,11 @@ module BlackStack
104
109
  def set(new_assigned_process, new_id_client)
105
110
  if (self.ws_url.to_s.size > 0 && self.ws_port.to_s.size > 0)
106
111
  url = "#{BlackStack::Pampa::api_protocol}://#{self.ws_url.to_s}:#{self.ws_port.to_s}/api1.3/pampa/notify.json"
112
+ #puts
113
+ #puts
114
+ #puts "url: #{url}"
115
+ #puts
116
+ #puts
107
117
  res = BlackStack::Netting::call_post(url, {
108
118
  'api_key' => BlackStack::Pampa::api_key,
109
119
  'name' => self.fullWorkerName,
@@ -117,6 +127,11 @@ module BlackStack
117
127
  def get()
118
128
  # me notifico a la central. obtengo asignacion que tenga
119
129
  url = "#{BlackStack::Pampa::api_url}/api1.3/pampa/get.json"
130
+ puts
131
+ puts
132
+ puts "url: #{url}"
133
+ puts
134
+ puts
120
135
  res = BlackStack::Netting::call_post(url, {
121
136
  'api_key' => BlackStack::Pampa::api_key,
122
137
  'name' => self.fullWorkerName }.merge( BlackStack::RemoteHost.new.poll )
@@ -204,6 +219,11 @@ module BlackStack
204
219
 
205
220
  # me notifico a la division. obtengo trabajo
206
221
  url = "#{BlackStack::Pampa::api_protocol}://#{self.ws_url}:#{self.ws_port}/api1.3/pampa/notify.json"
222
+ puts
223
+ puts
224
+ puts "url: #{url}"
225
+ puts
226
+ puts
207
227
  res = BlackStack::Netting::call_post(url,
208
228
  {
209
229
  'api_key' => BlackStack::Pampa::api_key,
@@ -14,6 +14,11 @@ module BlackStack
14
14
  # me notifico a la central. obtengo asignacion si ya la tenia
15
15
  # y vuelco la configuracion al remote worker
16
16
  url = "#{BlackStack::Pampa::api_url}/api1.3/pampa/get.json"
17
+ #puts
18
+ #puts
19
+ #puts "url: #{url}"
20
+ #puts
21
+ #puts
17
22
  res = BlackStack::Netting::call_post(url, {
18
23
  'api_key' => BlackStack::Pampa::api_key,
19
24
  'name' => self.fullWorkerName }.merge( BlackStack::RemoteHost.new.poll )
data/lib/pampa_workers.rb CHANGED
@@ -154,16 +154,6 @@ module BlackStack
154
154
  @@farm_external_ip_addresses = a
155
155
  end
156
156
 
157
- #
158
- def self.get_guid
159
- res = BlackStack::Netting::call_post(
160
- "#{self.api_url}/api1.4/get_guid.json",
161
- {'api_key' => @@api_key}
162
- )
163
- parsed = JSON.parse(res.body)
164
- parsed['value']
165
- end
166
-
167
157
  # Central database connection parameters
168
158
  @@db_url = nil
169
159
  @@db_port = nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pampa_workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.32
4
+ version: 1.1.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2022-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: websocket