mcmire-delayed_job_web 1.1.3.rc2 → 1.1.3.rc3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/delayed_job_web/application/app.rb +3 -2
- data/lib/delayed_job_web/application/public/stylesheets/style.css +5 -4
- data/lib/delayed_job_web/application/views/enqueued.haml +3 -3
- data/lib/delayed_job_web/application/views/overview.haml +11 -4
- data/lib/delayed_job_web/application/views/pending.haml +1 -1
- data/mcmire-delayed_job_web.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.3.
|
1
|
+
1.1.3.rc3
|
@@ -35,9 +35,10 @@ class DelayedJobWeb < Sinatra::Base
|
|
35
35
|
def tabs
|
36
36
|
[
|
37
37
|
{:name => 'Overview', :path => '/overview'},
|
38
|
-
{:name => 'Pending', :path => '/pending'},
|
39
38
|
{:name => 'Working', :path => '/working'},
|
39
|
+
{:name => 'Pending', :path => '/pending'},
|
40
40
|
{:name => 'Failed', :path => '/failed'},
|
41
|
+
{:name => 'All', :path => '/enqueued'},
|
41
42
|
{:name => 'Stats', :path => '/stats'}
|
42
43
|
]
|
43
44
|
end
|
@@ -148,7 +149,7 @@ class DelayedJobWeb < Sinatra::Base
|
|
148
149
|
def delayed_job_sql(type)
|
149
150
|
case type
|
150
151
|
when :enqueued
|
151
|
-
'
|
152
|
+
''
|
152
153
|
when :working
|
153
154
|
'locked_at is not null'
|
154
155
|
when :failed
|
@@ -35,10 +35,11 @@ pre { font-family:Courier New; line-height:1.4em; }
|
|
35
35
|
#main p.sub { font-size:95%; color:#999;}
|
36
36
|
|
37
37
|
#main table.overview { width:40%;}
|
38
|
-
#main table.overview td.status {
|
39
|
-
#main table.overview tr.failed td { border-top:2px solid; }
|
40
|
-
#main table.overview tr.failure td { background:#ffecec; color:#
|
41
|
-
#main table.overview tr.failure td a{ color:#
|
38
|
+
#main table.overview td.status { width:50%;}
|
39
|
+
#main table.overview tr.failed td { border-top:2px solid; font-size:90%; }
|
40
|
+
#main table.overview tr.failure td { background:#ffecec; border-top:2px solid #d37474; font-size:90%; color:#d37474;}
|
41
|
+
#main table.overview tr.failure td a{ color:#d37474;}
|
42
|
+
#main table.overview tr.all td { border-top:2px solid silver; font-weight: bold }
|
42
43
|
|
43
44
|
#main table.jobs td.class { font-family:Monaco, "Courier New", monospace; font-size:90%; width:50%;}
|
44
45
|
#main table.jobs td.args{ width:50%;}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
%h1
|
2
|
-
|
2
|
+
All Jobs
|
3
3
|
%p.sub
|
4
|
-
The list below contains all jobs
|
4
|
+
The list below contains all jobs which are in the delayed_jobs table.
|
5
5
|
%p.sub
|
6
|
-
= "Showing #{start} to #{start + per_page} of #{@all_jobs.count}
|
6
|
+
= "Showing #{start} to #{start + per_page} of #{@all_jobs.count} jobs."
|
7
7
|
%ul.job
|
8
8
|
- @jobs.each do |job|
|
9
9
|
= partial :job, {:job => job}
|
@@ -1,19 +1,26 @@
|
|
1
1
|
%h1
|
2
2
|
Overview
|
3
|
+
%p.sub
|
4
|
+
The table below gives the state of all jobs in the delayed_jobs table broken
|
5
|
+
down by status.
|
3
6
|
%table.overview
|
4
7
|
%tr
|
5
8
|
%th Status
|
6
9
|
%th Count
|
7
|
-
%tr
|
8
|
-
%td.status
|
9
|
-
%a{:href => u('/pending')} Pending Jobs
|
10
|
-
%td= count_all_jobs(:pending)
|
11
10
|
%tr
|
12
11
|
%td.status
|
13
12
|
%a{:href => u('/working')} Working Jobs
|
14
13
|
%td= count_all_jobs(:working)
|
14
|
+
%tr
|
15
|
+
%td.status
|
16
|
+
%a{:href => u('/pending')} Pending Jobs
|
17
|
+
%td= count_all_jobs(:pending)
|
15
18
|
%tr{:class => count_all_jobs(:failed) > 0 ? 'failure' : ''}
|
16
19
|
%td.status
|
17
20
|
%a{:href => u('/failed')} Failed Jobs
|
18
21
|
%td= count_all_jobs(:failed)
|
22
|
+
%tr.all
|
23
|
+
%td.status
|
24
|
+
%a{:href => u('/enqueued')} All Jobs
|
25
|
+
%td= count_all_jobs
|
19
26
|
= poll
|
@@ -4,7 +4,7 @@
|
|
4
4
|
%form{:method => 'POST', :action => u('requeue/all')}
|
5
5
|
%input{:type => 'submit', :value => 'Enqueue All Immediately'}
|
6
6
|
%p.sub
|
7
|
-
The list below contains jobs
|
7
|
+
The list below contains jobs which are waiting to be processed.
|
8
8
|
%p.sub= "Showing #{start} to #{start + per_page} of #{@all_jobs.count} pending jobs."
|
9
9
|
%ul.job
|
10
10
|
- @jobs.each do |job|
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mcmire-delayed_job_web}
|
8
|
-
s.version = "1.1.3.
|
8
|
+
s.version = "1.1.3.rc3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Erick Schmitt", "Elliot Winkler"]
|
12
|
-
s.date = %q{2012-11-
|
12
|
+
s.date = %q{2012-11-12}
|
13
13
|
s.default_executable = %q{delayed_job_web}
|
14
14
|
s.description = %q{Web interface for delayed_job inspired by resque}
|
15
15
|
s.email = %q{ejschmitt@gmail.com}
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mcmire-delayed_job_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15424059
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
9
|
- 3
|
10
10
|
- rc
|
11
|
-
-
|
12
|
-
version: 1.1.3.
|
11
|
+
- 3
|
12
|
+
version: 1.1.3.rc3
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Erick Schmitt
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2012-11-
|
21
|
+
date: 2012-11-12 00:00:00 -07:00
|
22
22
|
default_executable: delayed_job_web
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|