pampa_workers 1.1.32 → 1.1.33

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: c6ec1fcda790dc8a4d05bbc1f591a42cf1519116
4
+ data.tar.gz: 2946812226ece0641064f5dc282704c6d336e169
5
5
  SHA512:
6
- metadata.gz: e0ec6c8ab6712c409dcc97c254a4a78cbc0678cd2b605150f1befea64ebebb1ba270d30c69e12a83da1ce4784032174ed7e66d5007694bbb04aadae0665b9726
7
- data.tar.gz: d160334f0164fcdbde1d6231bd9309d829c5ca0cd8772e0bb8a9d3c775078e4e0f7890b3fcc900ed562b1efd729893efba107166e51f3630eb0d7e1d077562e2
6
+ metadata.gz: 675e163d62bf0f3e87d6974aaa65777164e7351466d6f943870b99728c4c3d8a42aacdf1f12d2b093ac488c353cc8a7be950b302377647b21b75c5cb24e2e924
7
+ data.tar.gz: f312b4e504b2ed76ceb7652e20e4508dd007f62f3bcbd01efc0a6fcf139352e52e10328fc43a338ee3f360b27dbdbdc1ba6ff4745ae0a7a38f6a59f4c62af99c
@@ -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.33
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-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: websocket