pampa_workers 1.1.39 → 1.1.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mylocalprocess.rb +9 -3
- 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: b76ec0b8c9345d4b2f8fcd41e69f77bac24a8358
|
4
|
+
data.tar.gz: 7ab23816c131a8ddc9ed61c3c481bb744468de06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9276baefe7c485cf999f663debfd3085ba1565e81160b19104be1fc78238aee8d08b0ee0571899704a42538f593569e53264d23afad81f8edd90fc4a5650dc40
|
7
|
+
data.tar.gz: 2255c7d576291513336d4b6e36e8642b9a23b4c0170cef1a63a08c9bbb5542715447ef0ec38ffef48d81634d844b5cfc43124801d03287065e7745ac6d5d57bb
|
data/lib/mylocalprocess.rb
CHANGED
@@ -27,7 +27,12 @@ module BlackStack
|
|
27
27
|
return BlackStack::Division.where(:central=>true).first
|
28
28
|
end
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
|
+
def notifyError(uid, description, oid=nil, screenshot_file=nil, url=nil, assigned_process=nil)
|
32
|
+
url = "#{CS_HOME_PAGE_PROTOCOL}://#{self.division.home.app_url}:#{self.division.home.app_port}/api1.3/bots/boterror.json" if url.nil?
|
33
|
+
super(uid, description, oid, screenshot_file, url, assigned_process)
|
34
|
+
end
|
35
|
+
|
31
36
|
def worker()
|
32
37
|
BlackStack::Worker.where(:name=>self.fullWorkerName).first
|
33
38
|
end
|
@@ -95,7 +100,7 @@ module BlackStack
|
|
95
100
|
while (self.canRun?)
|
96
101
|
# reseteo en contador nested del logger
|
97
102
|
self.logger.reset()
|
98
|
-
|
103
|
+
|
99
104
|
# announcing my in the log
|
100
105
|
logger.log "Going to Run Local"
|
101
106
|
logger.log "Process: #{self.assigned_process.to_s}."
|
@@ -110,7 +115,7 @@ module BlackStack
|
|
110
115
|
GC.start
|
111
116
|
DB.disconnect
|
112
117
|
logger.done
|
113
|
-
|
118
|
+
raise 'lalala'
|
114
119
|
# cargo el objeto worker
|
115
120
|
logger.logs "Load the worker... "
|
116
121
|
the_worker = self.worker
|
@@ -132,6 +137,7 @@ module BlackStack
|
|
132
137
|
|
133
138
|
rescue => e
|
134
139
|
puts ""
|
140
|
+
self.notifyError(nil, "Local Process Error: #{e.to_s}\n#{e.backtrace.join("\n")}")
|
135
141
|
logger.log "Local Process Error: " + e.to_s + "\r\n" + e.backtrace.join("\r\n").to_s
|
136
142
|
end
|
137
143
|
|