simple_job 0.6.1 → 0.6.2

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.
@@ -1,5 +1,8 @@
1
1
  = Simple Job
2
2
 
3
+ == Version 0.6.2
4
+ * Fixing :asynchronous_execute threading issues
5
+
3
6
  == Version 0.6.1
4
7
  * Updating :asynchronous_execute option to fork a separate process
5
8
 
@@ -175,8 +175,13 @@ class SQSJobQueue < JobQueue
175
175
  Process.detach pid
176
176
  else
177
177
  # in child
178
- message_handler.call(last_definition, last_message)
179
- log_execution(true, last_message, current_job_type, current_start_milliseconds)
178
+ begin
179
+ message_handler.call(last_definition, last_message)
180
+ log_execution(true, last_message, current_job_type, current_start_milliseconds)
181
+ rescue Exception => e
182
+ logger.error("error executing asynchronous job: #{e.message}")
183
+ logger.error e.backtrace.join("\n ")
184
+ end
180
185
  exit
181
186
  end
182
187
  else
@@ -1,3 +1,3 @@
1
1
  module SimpleJob
2
- VERSION = '0.6.1'
2
+ VERSION = '0.6.2'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_job
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 1
10
- version: 0.6.1
9
+ - 2
10
+ version: 0.6.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Dawson