pampa_workers 1.1.29 → 1.1.31
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/lib/mylocalprocess.rb +5 -0
- data/lib/myparentprocess.rb +6 -1
- data/lib/myremoteprocess.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e3c25ccf9df0fce71a77b9ae4f3fd86d673d482
|
|
4
|
+
data.tar.gz: a52270d9cd1466d1021d611e8dc7c115ffff35f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a844049d0fdace8995dd82f78336b75b187667d8b91527b94b642447c48f9f91f28b3764b49ec323b98dd059f0f149f4ab05e17a87d43b1568826b0d24bffe49
|
|
7
|
+
data.tar.gz: 5b7d76c4b1af581b1a1f01cd79a0afacf92b4c9e32cb488f9ab657f47dac8852da8014b77e015b6a10b2c4d92e6e57a222d8c4a7546d61464bcd156a0a9100a0
|
data/lib/mylocalprocess.rb
CHANGED
|
@@ -60,6 +60,7 @@ module BlackStack
|
|
|
60
60
|
super
|
|
61
61
|
|
|
62
62
|
# creo el objeto logger
|
|
63
|
+
=begin
|
|
63
64
|
self.logger = RemoteLogger.new(
|
|
64
65
|
"#{self.fullWorkerName}.log",
|
|
65
66
|
BlackStack::Pampa::api_protocol,
|
|
@@ -68,6 +69,10 @@ module BlackStack
|
|
|
68
69
|
BlackStack::Pampa::api_key,
|
|
69
70
|
self.id_client # ID of the client that has this thread assigned
|
|
70
71
|
)
|
|
72
|
+
=end
|
|
73
|
+
self.logger = LocalLogger.new(
|
|
74
|
+
"#{self.fullWorkerName}.log"
|
|
75
|
+
)
|
|
71
76
|
|
|
72
77
|
# announcing my in the log
|
|
73
78
|
logger.log "Child process is alive!"
|
data/lib/myparentprocess.rb
CHANGED
|
@@ -7,6 +7,7 @@ module BlackStack
|
|
|
7
7
|
super
|
|
8
8
|
|
|
9
9
|
# creo el objeto logger
|
|
10
|
+
=begin
|
|
10
11
|
self.logger = BlackStack::RemoteLogger.new(
|
|
11
12
|
"#{self.fullWorkerName}.log",
|
|
12
13
|
BlackStack::Pampa::api_protocol,
|
|
@@ -15,7 +16,11 @@ module BlackStack
|
|
|
15
16
|
BlackStack::Pampa::api_key,
|
|
16
17
|
self.id_client # ID of the client that has this thread assigned
|
|
17
18
|
)
|
|
18
|
-
|
|
19
|
+
=end
|
|
20
|
+
self.logger = LocalLogger.new(
|
|
21
|
+
"#{self.fullWorkerName}.log"
|
|
22
|
+
)
|
|
23
|
+
|
|
19
24
|
#
|
|
20
25
|
pid = nil
|
|
21
26
|
while (true)
|
data/lib/myremoteprocess.rb
CHANGED
|
@@ -39,6 +39,7 @@ module BlackStack
|
|
|
39
39
|
|
|
40
40
|
#
|
|
41
41
|
def run()
|
|
42
|
+
=begin
|
|
42
43
|
# creo el objeto logger
|
|
43
44
|
self.logger = RemoteLogger.new(
|
|
44
45
|
"#{self.fullWorkerName}.log",
|
|
@@ -48,7 +49,11 @@ module BlackStack
|
|
|
48
49
|
BlackStack::Pampa::api_key,
|
|
49
50
|
self.id_client # ID of the client that has this thread assigned
|
|
50
51
|
)
|
|
51
|
-
|
|
52
|
+
=end
|
|
53
|
+
self.logger = LocalLogger.new(
|
|
54
|
+
"#{self.fullWorkerName}.log"
|
|
55
|
+
)
|
|
56
|
+
|
|
52
57
|
logger.log "Remote process is alive!"
|
|
53
58
|
# actualiza parametros de la central
|
|
54
59
|
logger.logs "Update from central (1-remote)... "
|