queue_dispatcher 1.1.12 → 1.1.14
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/app/helpers/tasks_helper.rb
CHANGED
@@ -3,10 +3,10 @@ module TasksHelper
|
|
3
3
|
icon = 'icon_warning.gif'
|
4
4
|
alt = 'Unknwon'
|
5
5
|
|
6
|
-
if task.pending?
|
6
|
+
if task.pending? && ! task.reloading_config?
|
7
7
|
icon = 'icon_pending.gif'
|
8
8
|
alt = 'Pending'
|
9
|
-
elsif task.init_queue?
|
9
|
+
elsif task.init_queue? || task.reloading_config?
|
10
10
|
icon = 'icon_init_queue.gif'
|
11
11
|
alt = 'Initialize Queue'
|
12
12
|
elsif task.acquire_lock?
|
@@ -113,6 +113,12 @@ module QueueDispatcher
|
|
113
113
|
end
|
114
114
|
|
115
115
|
|
116
|
+
# Is the task_queue in state config_reload?
|
117
|
+
def reloading_config?
|
118
|
+
acts_as_task_task_queue && acts_as_task_task_queue.running? && acts_as_task_task_queue.state == 'reloading_config'
|
119
|
+
end
|
120
|
+
|
121
|
+
|
116
122
|
# Is this task pending?
|
117
123
|
def acquire_lock?
|
118
124
|
acts_as_task_task_queue && acts_as_task_task_queue.running? && state == 'acquire_lock'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: queue_dispatcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.14
|
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-
|
12
|
+
date: 2012-12-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sys-proctable
|