resque-job-stats 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6341d0bd166660770021824e10df1940fb9b3ed7
|
4
|
+
data.tar.gz: 46ae0994cb18ce6fb0cf5b74af9b93bd6dd73813
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16716c3f7ca43d582a9027ca550acf3f520f959be34ba1c9f3120e2cac5036651a608c8f01c2a650950f8354d89d9c29bbaf31c9125f7da214506205a7cd15ce
|
7
|
+
data.tar.gz: 4f2bd3ab45e390ecd191521b1d3473cf85e80dee6bbf616c48d827fa524c298bcf291e59deeaa717509fdc0c2986afd74492522d22422a650fb4088af4a6de0c
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<h1>Resque Job Histories</h1>
|
2
|
+
|
3
|
+
<p class="intro">
|
4
|
+
This page displays histories of jobs that have been executed.
|
5
|
+
</p>
|
6
|
+
|
7
|
+
<h2><%= @job_class %></h2>
|
8
|
+
|
9
|
+
<table>
|
10
|
+
<tr>
|
11
|
+
<th>Start time</th>
|
12
|
+
<th>Duration</th>
|
13
|
+
<th>Arguments</th>
|
14
|
+
<th>Success</th>
|
15
|
+
<th>Exception</th>
|
16
|
+
</tr>
|
17
|
+
<% @histories.each do |history| %>
|
18
|
+
<tr>
|
19
|
+
<td><span class="time"><%= history["run_at"] %></span></td>
|
20
|
+
<td><%= history["duration"] %></td>
|
21
|
+
<td><%= history["args"].inspect %></td>
|
22
|
+
<td><%= check_or_cross_stat(history["success"]) %></td>
|
23
|
+
<td><%= history["exception"]["name"] if history["exception"] %></td>
|
24
|
+
</tr>
|
25
|
+
<% end %>
|
26
|
+
</table>
|
27
|
+
|
28
|
+
<%if @start > 0 || @start + @limit <= @size %>
|
29
|
+
<p class='pagination'>
|
30
|
+
<% if @start - @limit >= 0 %>
|
31
|
+
<a href="<%= current_page %>?start=<%= [0, @start - @limit].max %>&limit=<%= @limit %>" class='less'>« less</a>
|
32
|
+
<% end %>
|
33
|
+
<% if @start + @limit <= @size %>
|
34
|
+
<a href="<%= current_page %>?start=<%= @start + @limit %>&limit=<%= @limit %>" class='more'>more »</a>
|
35
|
+
<% end %>
|
36
|
+
</p>
|
37
|
+
<%end%>
|
38
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<h1>Resque Job Stats</h1>
|
2
|
+
|
3
|
+
<p class="intro">
|
4
|
+
This page displays statistics about jobs that have been executed.
|
5
|
+
</p>
|
6
|
+
|
7
|
+
<table>
|
8
|
+
<tr>
|
9
|
+
<th>Name</th>
|
10
|
+
<%= stat_header(:jobs_enqueued) %>
|
11
|
+
<%= stat_header(:jobs_performed) %>
|
12
|
+
<%= stat_header(:jobs_failed) %>
|
13
|
+
<%= stat_header(:job_rolling_avg) %>
|
14
|
+
<%= stat_header(:longest_job) %>
|
15
|
+
</tr>
|
16
|
+
<% @jobs.each do |job| %>
|
17
|
+
<tr>
|
18
|
+
<td>
|
19
|
+
<%= job.name %>
|
20
|
+
<% if job.job_class <= Resque::Plugins::JobStats::History ||
|
21
|
+
job.job_class.is_a?(Resque::Plugins::JobStats::History) %>
|
22
|
+
<a href='<%= url "/job_history/#{job.name}" %>'>[history]</a>
|
23
|
+
<% end %>
|
24
|
+
</td>
|
25
|
+
<%= display_stat(job, :jobs_enqueued, :number_display) %>
|
26
|
+
<%= display_stat(job, :jobs_performed, :number_display) %>
|
27
|
+
<%= display_stat(job, :jobs_failed, :number_display) %>
|
28
|
+
<%= display_stat(job, :job_rolling_avg, :time_display) %>
|
29
|
+
<%= display_stat(job, :longest_job, :time_display) %>
|
30
|
+
</tr>
|
31
|
+
<% end %>
|
32
|
+
</table>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-job-stats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alanpeabody
|
@@ -93,6 +93,8 @@ files:
|
|
93
93
|
- README.rdoc
|
94
94
|
- lib/resque-job-stats.rb
|
95
95
|
- lib/resque-job-stats/server.rb
|
96
|
+
- lib/resque-job-stats/server/views/job_histories.erb
|
97
|
+
- lib/resque-job-stats/server/views/job_stats.erb
|
96
98
|
- lib/resque/plugins/job_stats.rb
|
97
99
|
- lib/resque/plugins/job_stats/duration.rb
|
98
100
|
- lib/resque/plugins/job_stats/enqueued.rb
|