perfectqueue 0.7.23 → 0.7.24

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.
data/ChangeLog CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ == 2012-08-10 version 0.7.24
3
+
4
+ * Kill running task if an unexpected error occured during extending timeout
5
+
6
+
2
7
  == 2012-08-03 version 0.7.23
3
8
 
4
9
  * Use free slot ratio instead of free slot amount to decide task priorities
@@ -1,5 +1,5 @@
1
1
  module PerfectQueue
2
2
 
3
- VERSION = '0.7.23'
3
+ VERSION = '0.7.24'
4
4
 
5
5
  end
@@ -66,6 +66,10 @@ class MonitorThread
66
66
  @log.info "task id=#{@task_id} is canceled."
67
67
  @canceled = true
68
68
  @kill_time = now
69
+ rescue
70
+ @log.error "unexpected error id=#{@task_id}: #{$!}"
71
+ @canceled = true
72
+ @kill_time = now
69
73
  end
70
74
  @heartbeat_time = now + @heartbeat_interval
71
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perfectqueue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.23
4
+ version: 0.7.24
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-03 00:00:00.000000000 Z
12
+ date: 2012-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sequel