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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mylocalprocess.rb +9 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3175ade5d17fb0108641063b707974f68e2874cb
4
- data.tar.gz: 573c5ce2ba81f42174b605690a92578362b1b2ac
3
+ metadata.gz: b76ec0b8c9345d4b2f8fcd41e69f77bac24a8358
4
+ data.tar.gz: 7ab23816c131a8ddc9ed61c3c481bb744468de06
5
5
  SHA512:
6
- metadata.gz: 0d44ac6a3c807cb5c9d790f9aad8ad12f59e976d02794ec54ca6b6dfd51f309ad134a8cb1257c36b26f124f86f9f9c4b511bee5e0d1f2c6e6faae0d9063db615
7
- data.tar.gz: bd07fdafd4e338b32720feb83fe436242f8d765e3616a4cac985d1597026ff4f5b811d008068a5eb240c945d0333687af5072bd2142a4d7f518f3ad55b64fb0c
6
+ metadata.gz: 9276baefe7c485cf999f663debfd3085ba1565e81160b19104be1fc78238aee8d08b0ee0571899704a42538f593569e53264d23afad81f8edd90fc4a5650dc40
7
+ data.tar.gz: 2255c7d576291513336d4b6e36e8642b9a23b4c0170cef1a63a08c9bbb5542715447ef0ec38ffef48d81634d844b5cfc43124801d03287065e7745ac6d5d57bb
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pampa_workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.39
4
+ version: 1.1.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi