thehenster-resque-scheduler 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -17,27 +17,52 @@
|
|
17
17
|
<th>Just Once</th>
|
18
18
|
<th>Arguments</th>
|
19
19
|
</tr>
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
20
|
+
|
21
|
+
<%
|
22
|
+
grouped_hash = {}
|
23
|
+
ungrouped_hash = {}
|
24
|
+
Resque.schedule.each do |k,v|
|
25
|
+
if !v["group"].to_s.strip.empty?
|
26
|
+
grouped_hash[v["group"]] ||= {}
|
27
|
+
grouped_hash[v["group"]][k] = v
|
28
|
+
else
|
29
|
+
ungrouped_hash[k] = v
|
30
|
+
end
|
31
|
+
end
|
25
32
|
%>
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
33
|
+
|
34
|
+
<% all_ary = grouped_hash.to_a %>
|
35
|
+
<% all_ary << ["Misc", ungrouped_hash] %>
|
36
|
+
<% all_ary.each do |group| %>
|
37
|
+
<% group_name = group[0] %>
|
38
|
+
<% ary = group[1] %>
|
39
|
+
|
40
|
+
<tr><td colspan="9" style="color:darkgreen;font-weight:bold;"><%= group_name %></td></tr>
|
41
|
+
|
42
|
+
<% ary = ary.sort{|a,b| a[0] <=> b[0] } %>
|
43
|
+
<% ary.each do |e| %>
|
44
|
+
<%
|
45
|
+
name = e[0]
|
46
|
+
config = e[1]
|
47
|
+
%>
|
48
|
+
<tr>
|
49
|
+
<td>
|
50
|
+
<form action="<%= url "/schedule/requeue" %>" method="post">
|
51
|
+
<input type="hidden" name="job_name" value="<%= h name %>">
|
52
|
+
<input type="submit" value="Queue now">
|
53
|
+
</form>
|
54
|
+
</td>
|
55
|
+
<td><%= h name %></td>
|
56
|
+
<td><%= h config['description'] %></td>
|
57
|
+
<td style="white-space:nowrap"><%= h config['cron'] %></td>
|
58
|
+
<td><%= distance_of_time_in_words(Time.now, Rufus::CronLine.new(config['cron']).next_time, true) rescue nil %><br /><span style="color:#888;font-size:85%;"><%= (Rufus::CronLine.new(config['cron']).next_time) rescue nil %></span></td>
|
59
|
+
<td><%= h config['class'] %></td>
|
60
|
+
<td><%= h config['queue'] || queue_from_class_name(config['class']) %></td>
|
61
|
+
<td><%= h config['just_once'].inspect %></td>
|
62
|
+
<td><%= h config['args'].inspect %></td>
|
63
|
+
</tr>
|
64
|
+
<% end %>
|
65
|
+
|
66
|
+
<% end %>
|
67
|
+
|
43
68
|
</table>
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 11
|
9
|
+
version: 1.0.11
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ben VandenBos
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-04-13 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|