pampa_workers 1.1.39 → 1.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 +4 -4
- data/lib/mylocalprocess.rb +4 -3
- data/lib/pampa-local.rb +1 -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: cd2b556393791e29081ae163f85537c275acc466
|
|
4
|
+
data.tar.gz: 06183e74108d338bdd294a7d608ea4c2dff3bd26
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 02a3d2c706b196ce595a2c70c3e35f68080f1c3e81925e51d8150e236decfa24ff07f201cc9055260415dbe8250d8cdd9e6fa15ef71ff8b66fa024d94ab60003
|
|
7
|
+
data.tar.gz: a9a546beccf89d6106dd2ac1697413429ee42f030e9be86bf9ca5b691bd162b21ca0769af859ed8c231eec9c60a4dd5350005589914d41d562e4ec202b43090c
|
data/lib/mylocalprocess.rb
CHANGED
|
@@ -27,7 +27,7 @@ module BlackStack
|
|
|
27
27
|
return BlackStack::Division.where(:central=>true).first
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
def worker()
|
|
32
32
|
BlackStack::Worker.where(:name=>self.fullWorkerName).first
|
|
33
33
|
end
|
|
@@ -95,7 +95,7 @@ module BlackStack
|
|
|
95
95
|
while (self.canRun?)
|
|
96
96
|
# reseteo en contador nested del logger
|
|
97
97
|
self.logger.reset()
|
|
98
|
-
|
|
98
|
+
|
|
99
99
|
# announcing my in the log
|
|
100
100
|
logger.log "Going to Run Local"
|
|
101
101
|
logger.log "Process: #{self.assigned_process.to_s}."
|
|
@@ -110,7 +110,7 @@ module BlackStack
|
|
|
110
110
|
GC.start
|
|
111
111
|
DB.disconnect
|
|
112
112
|
logger.done
|
|
113
|
-
|
|
113
|
+
|
|
114
114
|
# cargo el objeto worker
|
|
115
115
|
logger.logs "Load the worker... "
|
|
116
116
|
the_worker = self.worker
|
|
@@ -132,6 +132,7 @@ module BlackStack
|
|
|
132
132
|
|
|
133
133
|
rescue => e
|
|
134
134
|
puts ""
|
|
135
|
+
self.notifyError(nil, "Local Process Error: #{e.to_s}\n#{e.backtrace.join("\n")}")
|
|
135
136
|
logger.log "Local Process Error: " + e.to_s + "\r\n" + e.backtrace.join("\r\n").to_s
|
|
136
137
|
end
|
|
137
138
|
|
data/lib/pampa-local.rb
CHANGED
|
@@ -18,7 +18,7 @@ def now()
|
|
|
18
18
|
# La llamada a GETDATE() desde ODBC no retorna precision de milisegundos, que es necesaria para los registros de log.
|
|
19
19
|
# La llamada a SYSDATETIME() retorna un valor de alta precision que no es compatible para pegar en los campos del tipo DATATIME.
|
|
20
20
|
# La linea de abajo obtiene la hora en formato de SYSDATE y le trunca los ultimos digitos para hacer que el valor sea compatible con los campos DATETIME.
|
|
21
|
-
(DB['SELECT SYSDATETIME() AS [now]'].map(:now)[0]).to_s[0..
|
|
21
|
+
(DB['SELECT SYSDATETIME() AS [now]'].map(:now)[0]).to_s[0..18]
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def diff(unit, t0, t1)
|