solid_queue_ui 0.0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/solid_queue_ui/rails.rb +1 -7
- data/lib/solid_queue_ui/version.rb +1 -1
- data/lib/solid_queue_ui/web/application.rb +49 -4
- data/releases/solid_queue_ui-0.0.1.gem +0 -0
- data/releases/solid_queue_ui-0.1.0.gem +0 -0
- data/solid_queue_ui.gemspec +1 -1
- data/web/assets/stylesheets/application.css +74 -19
- data/web/views/_nav.html.erb +34 -11
- data/web/views/blocked_executions.html.erb +34 -0
- data/web/views/claimed_executions.html.erb +28 -0
- data/web/views/dashboard.html.erb +18 -18
- data/web/views/executions.html.erb +5 -0
- data/web/views/failed_executions.html.erb +29 -0
- data/web/views/jobs.html.erb +17 -23
- data/web/views/pauses.html.erb +26 -0
- data/web/views/processes.html.erb +36 -0
- data/web/views/ready_executions.html.erb +30 -0
- data/web/views/scheduled_executions.html.erb +32 -0
- data/web/views/semaphores.html.erb +34 -0
- metadata +15 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e121d87a44f794b235a693bceec75787e60f97c346e702a4c6cd45484678b914
|
4
|
+
data.tar.gz: bb00322ce390ba1c063d1ba3472ebe3464ba0cbda0257a0c1ca50e50cb230333
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40ae1a6bac2a84207f038da82a0e1286479c9713d81f8cdd8d5617cf7c0f9166b356b392daca82f18dd0bfeb11768d10831c100fbd3f3687741924b6af7080d0
|
7
|
+
data.tar.gz: b7903910934c4602f86c2ef4169125329ff6c82c2207b334fc380fd5cad0397a0fa272a612a9b9d872b1afbce4008c41d4e88e16fd87652844037e7fdcbcb4c8
|
data/lib/solid_queue_ui/rails.rb
CHANGED
@@ -1,11 +1,5 @@
|
|
1
1
|
require "rails"
|
2
2
|
|
3
3
|
module SolidQueueUi
|
4
|
-
|
5
|
-
initializer "solid_queue_ui.active_job_integration" do
|
6
|
-
ActiveSupport.on_load(:active_job) do
|
7
|
-
include ::SolidQueueUi::Job::Options unless respond_to?(:solid_queue_ui_options)
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
4
|
+
|
11
5
|
end
|
@@ -52,10 +52,55 @@ module SolidQueueUi
|
|
52
52
|
erb(:dashboard)
|
53
53
|
end
|
54
54
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
55
|
+
get "/jobs" do
|
56
|
+
@sq_jobs = ActiveRecord::Base.connection.execute("SELECT * FROM solid_queue_jobs ORDER BY priority ASC")
|
57
|
+
erb(:jobs)
|
58
|
+
end
|
59
|
+
|
60
|
+
get "/pauses" do
|
61
|
+
@sq_jobs = ActiveRecord::Base.connection.execute("SELECT * FROM solid_queue_pauses ORDER BY created_at ASC")
|
62
|
+
erb(:pauses)
|
63
|
+
end
|
64
|
+
|
65
|
+
get "/processes" do
|
66
|
+
@sq_jobs = ActiveRecord::Base.connection.execute("SELECT * FROM solid_queue_processes ORDER BY created_at ASC")
|
67
|
+
erb(:processes)
|
68
|
+
end
|
69
|
+
|
70
|
+
get "/executions" do
|
71
|
+
@sq_jobs = ActiveRecord::Base.connection.execute("SELECT * FROM solid_queue_jobs ORDER BY priority ASC")
|
72
|
+
erb(:executions)
|
73
|
+
end
|
74
|
+
|
75
|
+
get "/executions/claimed" do
|
76
|
+
@sq_jobs = ActiveRecord::Base.connection.execute("SELECT * FROM solid_queue_claimed_executions ORDER BY job_id ASC")
|
77
|
+
erb(:claimed_executions)
|
78
|
+
end
|
79
|
+
|
80
|
+
get "/executions/ready" do
|
81
|
+
@sq_jobs = ActiveRecord::Base.connection.execute("SELECT * FROM solid_queue_ready_executions ORDER BY priority ASC")
|
82
|
+
erb(:ready_executions)
|
83
|
+
end
|
84
|
+
|
85
|
+
get "/executions/failed" do
|
86
|
+
@sq_jobs = ActiveRecord::Base.connection.execute("SELECT * FROM solid_queue_failed_executions ORDER BY job_id ASC")
|
87
|
+
erb(:failed_executions)
|
88
|
+
end
|
89
|
+
|
90
|
+
get "/executions/blocked" do
|
91
|
+
@sq_jobs = ActiveRecord::Base.connection.execute("SELECT * FROM solid_queue_blocked_executions ORDER BY priority ASC")
|
92
|
+
erb(:blocked_executions)
|
93
|
+
end
|
94
|
+
|
95
|
+
get "/executions/scheduled" do
|
96
|
+
@sq_jobs = ActiveRecord::Base.connection.execute("SELECT * FROM solid_queue_scheduled_executions ORDER BY priority ASC")
|
97
|
+
erb(:scheduled_executions)
|
98
|
+
end
|
99
|
+
|
100
|
+
get "/semaphores" do
|
101
|
+
@sq_jobs = ActiveRecord::Base.connection.execute("SELECT * FROM solid_queue_semaphores ORDER BY expires_at ASC")
|
102
|
+
erb(:semaphores)
|
103
|
+
end
|
59
104
|
|
60
105
|
def call(env)
|
61
106
|
action = self.class.match(env)
|
Binary file
|
Binary file
|
data/solid_queue_ui.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
30
30
|
spec.require_paths = ["lib"]
|
31
31
|
|
32
|
-
spec.add_dependency "solid_queue"
|
32
|
+
spec.add_dependency "solid_queue", ">= 0.1.1"
|
33
33
|
spec.add_dependency "activerecord", ">= 6.0", "< 8.0"
|
34
34
|
spec.add_dependency "sassc-rails", "~> 2.1"
|
35
35
|
|
@@ -2,36 +2,91 @@ body {
|
|
2
2
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
3
3
|
}
|
4
4
|
|
5
|
-
table
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
table {
|
6
|
+
border-collapse: collapse;
|
7
|
+
border-spacing: 0;
|
8
|
+
text-align: left;
|
9
|
+
width: 100%;
|
9
10
|
}
|
10
11
|
|
11
|
-
|
12
|
-
|
12
|
+
table.table-striped tbody tr:nth-of-type(odd) {
|
13
|
+
background: #f7f8f9;
|
13
14
|
}
|
14
15
|
|
15
|
-
table
|
16
|
-
|
16
|
+
table tbody tr.active,
|
17
|
+
table.table-striped tbody tr.active {
|
18
|
+
background: #eef0f3;
|
19
|
+
}
|
20
|
+
|
21
|
+
table.table-hover tbody tr:hover {
|
22
|
+
background: #eef0f3;
|
17
23
|
}
|
18
24
|
|
19
|
-
|
25
|
+
table.table-scroll {
|
26
|
+
display: block;
|
27
|
+
overflow-x: auto;
|
28
|
+
padding-bottom: .75rem;
|
20
29
|
white-space: nowrap;
|
21
30
|
}
|
22
31
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
32
|
+
table td,
|
33
|
+
table th {
|
34
|
+
border-bottom: .05rem solid #dadee4;
|
35
|
+
padding: .6rem .4rem;
|
36
|
+
}
|
37
|
+
|
38
|
+
table th {
|
39
|
+
border-bottom-width: .1rem;
|
40
|
+
}
|
41
|
+
|
42
|
+
|
43
|
+
.navbar {
|
44
|
+
align-items: stretch;
|
45
|
+
display: -ms-flexbox;
|
46
|
+
display: flex;
|
47
|
+
-ms-flex-align: stretch;
|
48
|
+
-ms-flex-pack: justify;
|
49
|
+
-ms-flex-wrap: wrap;
|
50
|
+
flex-wrap: wrap;
|
51
|
+
justify-content: space-between;
|
52
|
+
}
|
53
|
+
|
54
|
+
.navbar .navbar-section {
|
55
|
+
align-items: center;
|
56
|
+
display: -ms-flexbox;
|
57
|
+
display: flex;
|
58
|
+
-ms-flex: 1 0 0;
|
59
|
+
flex: 1 0 0;
|
60
|
+
-ms-flex-align: center;
|
61
|
+
}
|
62
|
+
|
63
|
+
.navbar .navbar-section:not(:first-child):last-child {
|
64
|
+
-ms-flex-pack: end;
|
65
|
+
justify-content: flex-end;
|
66
|
+
}
|
67
|
+
|
68
|
+
.navbar .navbar-center {
|
69
|
+
align-items: center;
|
70
|
+
display: -ms-flexbox;
|
71
|
+
display: flex;
|
72
|
+
-ms-flex: 0 0 auto;
|
73
|
+
flex: 0 0 auto;
|
74
|
+
-ms-flex-align: center;
|
75
|
+
}
|
76
|
+
|
77
|
+
.navbar .navbar-brand {
|
78
|
+
font-weight: bold;
|
79
|
+
text-decoration: none;
|
80
|
+
}
|
81
|
+
|
82
|
+
.navbar-link {
|
83
|
+
padding: 0 0.5em;
|
28
84
|
}
|
29
85
|
|
30
|
-
|
31
|
-
|
32
|
-
border-right-width: 0;
|
86
|
+
.nav-sub-link {
|
87
|
+
font-size: 14px;
|
33
88
|
}
|
34
89
|
|
35
|
-
|
36
|
-
|
90
|
+
.nav-sub-section {
|
91
|
+
background: #e5e5e5;
|
37
92
|
}
|
data/web/views/_nav.html.erb
CHANGED
@@ -1,11 +1,34 @@
|
|
1
|
-
<
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
</
|
1
|
+
<header class="navbar">
|
2
|
+
<section class="navbar-section">
|
3
|
+
<a class="navbar-brand" href="<%= root_path %>">
|
4
|
+
<%= SolidQueueUi::NAME %>
|
5
|
+
</a>
|
6
|
+
<a href="<%= "#{root_path}jobs" %>" class="navbar-link">
|
7
|
+
Jobs
|
8
|
+
</a>
|
9
|
+
<a href="<%= "#{root_path}pauses"%>" class="navbar-link">
|
10
|
+
Pauses
|
11
|
+
</a>
|
12
|
+
<a href="<%= "#{root_path}processes"%>" class="navbar-link">
|
13
|
+
Processes
|
14
|
+
</a>
|
15
|
+
<a href="<%= "#{root_path}executions/claimed"%>" class="navbar-link nav-sub-link">
|
16
|
+
Claimed
|
17
|
+
</a>
|
18
|
+
<a href="<%= "#{root_path}executions/ready"%>" class="navbar-link nav-sub-link">
|
19
|
+
Ready
|
20
|
+
</a>
|
21
|
+
<a href="<%= "#{root_path}executions/scheduled"%>" class="navbar-link nav-sub-link">
|
22
|
+
Scheduled
|
23
|
+
</a>
|
24
|
+
<a href="<%= "#{root_path}executions/blocked"%>" class="navbar-link nav-sub-link">
|
25
|
+
Blocked
|
26
|
+
</a>
|
27
|
+
<a href="<%= "#{root_path}executions/failed"%>" class="navbar-link nav-sub-link">
|
28
|
+
Failed
|
29
|
+
</a>
|
30
|
+
<a href="<%= "#{root_path}semaphores"%>" class="navbar-link">
|
31
|
+
Semaphores
|
32
|
+
</a>
|
33
|
+
</section>
|
34
|
+
</header>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<h1>Blocked Executions</h1>
|
2
|
+
|
3
|
+
<% if @sq_jobs.num_tuples.zero? %>
|
4
|
+
<p>No blocked executions</p>
|
5
|
+
<% else %>
|
6
|
+
<table class="table-striped">
|
7
|
+
<thead>
|
8
|
+
<tr>
|
9
|
+
<th>ID</th>
|
10
|
+
<th>Job ID</th>
|
11
|
+
<th>Queue Name</th>
|
12
|
+
<th>Priority</th>
|
13
|
+
<th>Concurrency Key</th>
|
14
|
+
<th>Expires</th>
|
15
|
+
<th>Created</th>
|
16
|
+
</tr>
|
17
|
+
</thead>
|
18
|
+
<tbody>
|
19
|
+
<% @sq_jobs.each do |page| %>
|
20
|
+
<tr>
|
21
|
+
<td><%= page['id'] %></td>
|
22
|
+
<td><%= page['job_id'] %></td>
|
23
|
+
<td><%= page['queue_name'] %></td>
|
24
|
+
<td><%= page['priority'] %></td>
|
25
|
+
<td><%= page['concurrency_key'] %></td>
|
26
|
+
<td><%= page['expires_at'] %></td>
|
27
|
+
<td><%= page['created_at'] %></td>
|
28
|
+
</tr>
|
29
|
+
<% end %>
|
30
|
+
</tbody>
|
31
|
+
</table>
|
32
|
+
<% end %>
|
33
|
+
|
34
|
+
<script type="text/javascript" src="<%= root_path %>javascripts/chart.min.js"></script>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<h1>Claimed Executions</h1>
|
2
|
+
|
3
|
+
<% if @sq_jobs.num_tuples.zero? %>
|
4
|
+
<p>No claimed executions</p>
|
5
|
+
<% else %>
|
6
|
+
<table class="table-striped">
|
7
|
+
<thead>
|
8
|
+
<tr>
|
9
|
+
<th>ID</th>
|
10
|
+
<th>Job ID</th>
|
11
|
+
<th>Process ID</th>
|
12
|
+
<th>Created</th>
|
13
|
+
</tr>
|
14
|
+
</thead>
|
15
|
+
<tbody>
|
16
|
+
<% @sq_jobs.each do |page| %>
|
17
|
+
<tr>
|
18
|
+
<td><%= page['id'] %></td>
|
19
|
+
<td><%= page['job_id'] %></td>
|
20
|
+
<td><%= page['process_id'] %></td>
|
21
|
+
<td><%= page['created_at'] %></td>
|
22
|
+
</tr>
|
23
|
+
<% end %>
|
24
|
+
</tbody>
|
25
|
+
</table>
|
26
|
+
<% end %>
|
27
|
+
|
28
|
+
<script type="text/javascript" src="<%= root_path %>javascripts/chart.min.js"></script>
|
@@ -1,31 +1,31 @@
|
|
1
|
-
<h1>
|
1
|
+
<h1>Control Center</h1>
|
2
2
|
<% if @sq_jobs.num_tuples.zero? %>
|
3
3
|
<p>No jobs found</p>
|
4
4
|
<% else %>
|
5
|
-
<table>
|
5
|
+
<table class="table-striped">
|
6
6
|
<thead>
|
7
7
|
<tr>
|
8
|
-
<
|
9
|
-
<
|
10
|
-
<
|
11
|
-
<
|
12
|
-
<
|
13
|
-
<
|
14
|
-
<
|
15
|
-
<
|
8
|
+
<th>Job ID</th>
|
9
|
+
<th>Queue Name</th>
|
10
|
+
<th>Class Name</th>
|
11
|
+
<th>Arguments</th>
|
12
|
+
<th>Priority</th>
|
13
|
+
<th>Active Job ID</th>
|
14
|
+
<th>Scheduled At</th>
|
15
|
+
<th>Finished At</th>
|
16
16
|
</tr>
|
17
17
|
</thead>
|
18
18
|
<tbody>
|
19
19
|
<% @sq_jobs.each do |page| %>
|
20
20
|
<tr>
|
21
|
-
<td
|
22
|
-
<td
|
23
|
-
<td
|
24
|
-
<td
|
25
|
-
<td
|
26
|
-
<td
|
27
|
-
<td
|
28
|
-
<td
|
21
|
+
<td><%= page['id'] %></td>
|
22
|
+
<td><%= page['queue_name'] %></td>
|
23
|
+
<td><%= page['class_name'] %></td>
|
24
|
+
<td><%= page['arguments'] %></td>
|
25
|
+
<td><%= page['priority'] %></td>
|
26
|
+
<td><%= page['active_job_id'] %></td>
|
27
|
+
<td><%= page['scheduled_at'] %></td>
|
28
|
+
<td><%= page['finished_at'] %></td>
|
29
29
|
</tr>
|
30
30
|
<% end %>
|
31
31
|
</tbody>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<h1>Failed Executions</h1>
|
2
|
+
|
3
|
+
|
4
|
+
<% if @sq_jobs.num_tuples.zero? %>
|
5
|
+
<p>No failed executions</p>
|
6
|
+
<% else %>
|
7
|
+
<table class="table-striped">
|
8
|
+
<thead>
|
9
|
+
<tr>
|
10
|
+
<th>ID</th>
|
11
|
+
<th>Job ID</th>
|
12
|
+
<th>Error</th>
|
13
|
+
<th>Created</th>
|
14
|
+
</tr>
|
15
|
+
</thead>
|
16
|
+
<tbody>
|
17
|
+
<% @sq_jobs.each do |page| %>
|
18
|
+
<tr>
|
19
|
+
<td><%= page['id'] %></td>
|
20
|
+
<td><%= page['job_id'] %></td>
|
21
|
+
<td><%= page['error'] %></td>
|
22
|
+
<td><%= page['created_at'] %></td>
|
23
|
+
</tr>
|
24
|
+
<% end %>
|
25
|
+
</tbody>
|
26
|
+
</table>
|
27
|
+
<% end %>
|
28
|
+
|
29
|
+
<script type="text/javascript" src="<%= root_path %>javascripts/chart.min.js"></script>
|
data/web/views/jobs.html.erb
CHANGED
@@ -2,36 +2,30 @@
|
|
2
2
|
<% if @sq_jobs.num_tuples.zero? %>
|
3
3
|
<p>No jobs found</p>
|
4
4
|
<% else %>
|
5
|
-
<table>
|
5
|
+
<table class="table-striped">
|
6
6
|
<thead>
|
7
7
|
<tr>
|
8
|
-
<
|
9
|
-
<
|
10
|
-
<
|
11
|
-
<
|
12
|
-
<
|
13
|
-
<
|
8
|
+
<th>Job ID</th>
|
9
|
+
<th>Queue Name</th>
|
10
|
+
<th>Class</th>
|
11
|
+
<th>Arguments</th>
|
12
|
+
<th>Priority</th>
|
13
|
+
<th>Active Job ID</th>
|
14
|
+
<th>Scheduled</th>
|
15
|
+
<th>Finished</th>
|
14
16
|
</tr>
|
15
17
|
</thead>
|
16
18
|
<tbody>
|
17
19
|
<% @sq_jobs.each do |page| %>
|
18
|
-
<!--
|
19
|
-
<p>id: <%= page['id'] %> </p>
|
20
|
-
<p>queue_name: <%= page['queue_name'] %> </p>
|
21
|
-
<p>class_name: <%= page['class_name'] %> </p>
|
22
|
-
<p>arguments: <%= page['arguments'] %> </p>
|
23
|
-
<p>priority: <%= page['priority'] %> </p>
|
24
|
-
<p>active_job_id: <%= page['active_job_id'] %> </p>
|
25
|
-
<p>scheduled_at: <%= page['scheduled_at'] %> </p>
|
26
|
-
<p>finished_at: <%= page['finished_at'] %> </p>
|
27
|
-
-->
|
28
20
|
<tr>
|
29
|
-
<td
|
30
|
-
<td
|
31
|
-
<td
|
32
|
-
<td
|
33
|
-
<td
|
34
|
-
<td
|
21
|
+
<td><%= page['id'] %></td>
|
22
|
+
<td><%= page['queue_name'] %></td>
|
23
|
+
<td><%= page['class_name'] %></td>
|
24
|
+
<td><%= page['arguments'] %></td>
|
25
|
+
<td><%= page['priority'] %></td>
|
26
|
+
<td><%= page['active_job_id'] %></td>
|
27
|
+
<td><%= page['scheduled_at'] %></td>
|
28
|
+
<td><%= page['finished_at'] %></td>
|
35
29
|
</tr>
|
36
30
|
<% end %>
|
37
31
|
</tbody>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<h1>Pauses</h1>
|
2
|
+
|
3
|
+
<% if @sq_jobs.num_tuples.zero? %>
|
4
|
+
<p>No Pauses</p>
|
5
|
+
<% else %>
|
6
|
+
<table class="table-striped">
|
7
|
+
<thead>
|
8
|
+
<tr>
|
9
|
+
<th>ID</th>
|
10
|
+
<th>Queue Name</th>
|
11
|
+
<th>Created</th>
|
12
|
+
</tr>
|
13
|
+
</thead>
|
14
|
+
<tbody>
|
15
|
+
<% @sq_jobs.each do |page| %>
|
16
|
+
<tr>
|
17
|
+
<td><%= page['id'] %></td>
|
18
|
+
<td><%= page['queue_name'] %></td>
|
19
|
+
<td><%= page['created_at'] %></td>
|
20
|
+
</tr>
|
21
|
+
<% end %>
|
22
|
+
</tbody>
|
23
|
+
</table>
|
24
|
+
<% end %>
|
25
|
+
|
26
|
+
<script type="text/javascript" src="<%= root_path %>javascripts/chart.min.js"></script>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<h1>Processes</h1>
|
2
|
+
|
3
|
+
<% if @sq_jobs.num_tuples.zero? %>
|
4
|
+
<p>No processes found</p>
|
5
|
+
<% else %>
|
6
|
+
<table class="table-striped">
|
7
|
+
<thead>
|
8
|
+
<tr>
|
9
|
+
<th>ID</th>
|
10
|
+
<th>Kind</th>
|
11
|
+
<th>Last Heartbeat</th>
|
12
|
+
<th>Supervisor</th>
|
13
|
+
<th>PID</th>
|
14
|
+
<th>Hostname</th>
|
15
|
+
<th>Metadata</th>
|
16
|
+
<th>Created</th>
|
17
|
+
</tr>
|
18
|
+
</thead>
|
19
|
+
<tbody>
|
20
|
+
<% @sq_jobs.each do |page| %>
|
21
|
+
<tr>
|
22
|
+
<td><%= page['id'] %></td>
|
23
|
+
<td><%= page['kind'] %></td>
|
24
|
+
<td><%= page['last_heartbeat_at'] %></td>
|
25
|
+
<td><%= page['supervisor_id'] %></td>
|
26
|
+
<td><%= page['pid'] %></td>
|
27
|
+
<td><%= page['hostname'] %></td>
|
28
|
+
<td><%= page['metadata'] %></td>
|
29
|
+
<td><%= page['created_at'] %></td>
|
30
|
+
</tr>
|
31
|
+
<% end %>
|
32
|
+
</tbody>
|
33
|
+
</table>
|
34
|
+
<% end %>
|
35
|
+
|
36
|
+
<script type="text/javascript" src="<%= root_path %>javascripts/chart.min.js"></script>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<h1>Ready Executions</h1>
|
2
|
+
|
3
|
+
<% if @sq_jobs.num_tuples.zero? %>
|
4
|
+
<p>No ready executions</p>
|
5
|
+
<% else %>
|
6
|
+
<table class="table-striped">
|
7
|
+
<thead>
|
8
|
+
<tr>
|
9
|
+
<th>ID</th>
|
10
|
+
<th>Job ID</th>
|
11
|
+
<th>Queue Name</th>
|
12
|
+
<th>Priority</th>
|
13
|
+
<th>Created</th>
|
14
|
+
</tr>
|
15
|
+
</thead>
|
16
|
+
<tbody>
|
17
|
+
<% @sq_jobs.each do |page| %>
|
18
|
+
<tr>
|
19
|
+
<td><%= page['id'] %></td>
|
20
|
+
<td><%= page['job_id'] %></td>
|
21
|
+
<td><%= page['queue_name'] %></td>
|
22
|
+
<td><%= page['priority'] %></td>
|
23
|
+
<td><%= page['created_at'] %></td>
|
24
|
+
</tr>
|
25
|
+
<% end %>
|
26
|
+
</tbody>
|
27
|
+
</table>
|
28
|
+
<% end %>
|
29
|
+
|
30
|
+
<script type="text/javascript" src="<%= root_path %>javascripts/chart.min.js"></script>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<h1>Scheduled Executions</h1>
|
2
|
+
|
3
|
+
<% if @sq_jobs.num_tuples.zero? %>
|
4
|
+
<p>No Scheduled executions</p>
|
5
|
+
<% else %>
|
6
|
+
<table class="table-striped">
|
7
|
+
<thead>
|
8
|
+
<tr>
|
9
|
+
<th>ID</th>
|
10
|
+
<th>Job ID</th>
|
11
|
+
<th>Queue Name</th>
|
12
|
+
<th>Priority</th>
|
13
|
+
<th>Scheduled</th>
|
14
|
+
<th>Created</th>
|
15
|
+
</tr>
|
16
|
+
</thead>
|
17
|
+
<tbody>
|
18
|
+
<% @sq_jobs.each do |page| %>
|
19
|
+
<tr>
|
20
|
+
<td><%= page['id'] %></td>
|
21
|
+
<td><%= page['job_id'] %></td>
|
22
|
+
<td><%= page['queue_name'] %></td>
|
23
|
+
<td><%= page['priority'] %></td>
|
24
|
+
<td><%= page['scheduled_at'] %></td>
|
25
|
+
<td><%= page['created_at'] %></td>
|
26
|
+
</tr>
|
27
|
+
<% end %>
|
28
|
+
</tbody>
|
29
|
+
</table>
|
30
|
+
<% end %>
|
31
|
+
|
32
|
+
<script type="text/javascript" src="<%= root_path %>javascripts/chart.min.js"></script>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<h1>Semaphores</h1>
|
2
|
+
|
3
|
+
<% if @sq_jobs.num_tuples.zero? %>
|
4
|
+
<p>No semaphores</p>
|
5
|
+
<% else %>
|
6
|
+
<table class="table-striped">
|
7
|
+
<thead>
|
8
|
+
<tr>
|
9
|
+
<th>ID</th>
|
10
|
+
<th>Key</th>
|
11
|
+
<th>Value</th>
|
12
|
+
<th>Expires</th>
|
13
|
+
<th>Created</th>
|
14
|
+
<th>Updated</th>
|
15
|
+
</tr>
|
16
|
+
</thead>
|
17
|
+
<tbody>
|
18
|
+
<% @sq_jobs.each do |page| %>
|
19
|
+
<tr>
|
20
|
+
<td><%= page['id'] %></td>
|
21
|
+
<td><%= page['kind'] %></td>
|
22
|
+
<td><%= page['last_heartbeat_at'] %></td>
|
23
|
+
<td><%= page['supervisor_id'] %></td>
|
24
|
+
<td><%= page['pid'] %></td>
|
25
|
+
<td><%= page['hostname'] %></td>
|
26
|
+
<td><%= page['metadata'] %></td>
|
27
|
+
<td><%= page['created_at'] %></td>
|
28
|
+
</tr>
|
29
|
+
<% end %>
|
30
|
+
</tbody>
|
31
|
+
</table>
|
32
|
+
<% end %>
|
33
|
+
|
34
|
+
<script type="text/javascript" src="<%= root_path %>javascripts/chart.min.js"></script>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solid_queue_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claude Ayitey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solid_queue
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.1.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activerecord
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,6 +82,8 @@ files:
|
|
82
82
|
- lib/solid_queue_ui/web/helpers.rb
|
83
83
|
- lib/solid_queue_ui/web/router.rb
|
84
84
|
- lib/tasks/solid_queue_ui_tasks.rake
|
85
|
+
- releases/solid_queue_ui-0.0.1.gem
|
86
|
+
- releases/solid_queue_ui-0.1.0.gem
|
85
87
|
- solid_queue_ui.gemspec
|
86
88
|
- web/assets/javascripts/application.js
|
87
89
|
- web/assets/javascripts/chart.min.js
|
@@ -89,9 +91,18 @@ files:
|
|
89
91
|
- web/assets/stylesheets/application.css.scss
|
90
92
|
- web/views/_footer.html.erb
|
91
93
|
- web/views/_nav.html.erb
|
94
|
+
- web/views/blocked_executions.html.erb
|
95
|
+
- web/views/claimed_executions.html.erb
|
92
96
|
- web/views/dashboard.html.erb
|
97
|
+
- web/views/executions.html.erb
|
98
|
+
- web/views/failed_executions.html.erb
|
93
99
|
- web/views/jobs.html.erb
|
94
100
|
- web/views/layout.html.erb
|
101
|
+
- web/views/pauses.html.erb
|
102
|
+
- web/views/processes.html.erb
|
103
|
+
- web/views/ready_executions.html.erb
|
104
|
+
- web/views/scheduled_executions.html.erb
|
105
|
+
- web/views/semaphores.html.erb
|
95
106
|
- web/views/solid_queue_ui/application/_flashes.html.erb
|
96
107
|
- web/views/solid_queue_ui/application/_index_header.html.erb
|
97
108
|
- web/views/solid_queue_ui/application/_javascript.html.erb
|