mission_control-jobs 0.3.1 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/models/mission_control/jobs/recurring_task.rb +1 -1
- data/app/views/layouts/mission_control/jobs/application.html.erb +1 -1
- data/app/views/mission_control/jobs/recurring_tasks/_general_information.html.erb +29 -8
- data/app/views/mission_control/jobs/recurring_tasks/_recurring_task.html.erb +7 -3
- data/lib/active_job/queue_adapters/solid_queue_ext/recurring_tasks.rb +4 -1
- data/lib/mission_control/jobs/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c7ce16ee37335d17b00c145f7cfdeca380a031610dc47d03eebd7a42ca8771a
|
4
|
+
data.tar.gz: ac159740d425e2599a44209b10372f22b57541c4c3f110a48d024c99619a17ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b8db873d41d670e3653c2c0cf54dce91ffba77d8ecd0fde0469debd7fb2d24b193c57900d2f8679ae1a7142b760cc1d0f558302a398a6ceeb4a9ee36d45207d
|
7
|
+
data.tar.gz: 51b8e4693062abe8e4f4c405c8d35e20389b0b8269c7a730390c5a499fa7dfd16e79a0bb60ee88f689519bf59c5b6904a9792ee89165814176487fa0de18fb49
|
data/README.md
CHANGED
@@ -65,7 +65,7 @@ This library extends Active Job with a querying interface and the following sett
|
|
65
65
|
## Adapter Specifics
|
66
66
|
|
67
67
|
- **Resque**: Queue pausing is supported only if you have `resque-pause` installed in your project
|
68
|
-
- **Solid Queue**: Requires version >= 0.
|
68
|
+
- **Solid Queue**: Requires version >= 0.9.
|
69
69
|
|
70
70
|
## Advanced configuration
|
71
71
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class MissionControl::Jobs::RecurringTask
|
2
2
|
include ActiveModel::Model
|
3
3
|
|
4
|
-
attr_accessor :id, :job_class_name, :arguments, :schedule, :last_enqueued_at
|
4
|
+
attr_accessor :id, :job_class_name, :command, :arguments, :schedule, :last_enqueued_at, :queue_name, :priority
|
5
5
|
|
6
6
|
def initialize(queue_adapter: ActiveJob::Base.queue_adapter, **kwargs)
|
7
7
|
@queue_adapter = queue_adapter
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
9
9
|
<meta name="turbo-cache-control" content="no-cache">
|
10
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.
|
10
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1.0.1/css/bulma.min.css">
|
11
11
|
<%= stylesheet_link_tag "mission_control/jobs/application", "data-turbo-track": "reload" %>
|
12
12
|
<%= javascript_importmap_tags "application-mcj" %>
|
13
13
|
</head>
|
@@ -1,16 +1,37 @@
|
|
1
1
|
<table class="table">
|
2
2
|
<tbody>
|
3
|
-
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<
|
10
|
-
|
3
|
+
<% if recurring_task.job_class_name.present? %>
|
4
|
+
<tr>
|
5
|
+
<th>Job class</th>
|
6
|
+
<td><%= recurring_task.job_class_name %></td>
|
7
|
+
</tr>
|
8
|
+
|
9
|
+
<tr>
|
10
|
+
<th>Arguments</th>
|
11
|
+
<td><div class="is-family-monospace"><%= recurring_task.arguments.join(",") %></div></td>
|
12
|
+
</tr>
|
13
|
+
<% elsif recurring_task.command.present? %>
|
14
|
+
<tr>
|
15
|
+
<th>Command</th>
|
16
|
+
<td><div class="is-family-monospace"><%= recurring_task.command %></div></td>
|
17
|
+
</tr>
|
18
|
+
<% end %>
|
19
|
+
|
11
20
|
<tr>
|
12
21
|
<th>Schedule</th>
|
13
22
|
<td><%= recurring_task.schedule %></td>
|
14
23
|
</tr>
|
24
|
+
<% if recurring_task.queue_name.present? %>
|
25
|
+
<tr>
|
26
|
+
<th>Queue</th>
|
27
|
+
<td><%= recurring_task.queue_name %></td>
|
28
|
+
</tr>
|
29
|
+
<% end %>
|
30
|
+
<% if recurring_task.priority.present? %>
|
31
|
+
<tr>
|
32
|
+
<th>Priority</th>
|
33
|
+
<td><%= recurring_task.priority %></td>
|
34
|
+
</tr>
|
35
|
+
<% end %>
|
15
36
|
</tbody>
|
16
37
|
</table>
|
@@ -3,10 +3,14 @@
|
|
3
3
|
<%= link_to recurring_task.id, application_recurring_task_path(@application, recurring_task.id) %>
|
4
4
|
</td>
|
5
5
|
<td>
|
6
|
-
|
6
|
+
<% if recurring_task.job_class_name.present? %>
|
7
|
+
<%= recurring_task.job_class_name %>
|
7
8
|
|
8
|
-
|
9
|
-
|
9
|
+
<% if recurring_task.arguments.present? %>
|
10
|
+
<div class="is-family-monospace"><%= recurring_task.arguments.join(",") %></div>
|
11
|
+
<% end %>
|
12
|
+
<% elsif recurring_task.command.present? %>
|
13
|
+
<div class="is-family-monospace"><%= recurring_task.command %></div>
|
10
14
|
<% end %>
|
11
15
|
</td>
|
12
16
|
<td> <%= recurring_task.schedule %> </td>
|
@@ -25,8 +25,11 @@ module ActiveJob::QueueAdapters::SolidQueueExt::RecurringTasks
|
|
25
25
|
{
|
26
26
|
id: task.key,
|
27
27
|
job_class_name: task.class_name,
|
28
|
+
command: task.command,
|
28
29
|
arguments: task.arguments,
|
29
|
-
schedule: task.schedule
|
30
|
+
schedule: task.schedule,
|
31
|
+
queue_name: task.queue_name,
|
32
|
+
priority: task.priority
|
30
33
|
}
|
31
34
|
end
|
32
35
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mission_control-jobs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jorge Manrubia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0.
|
103
|
+
version: '0.9'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0.
|
110
|
+
version: '0.9'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: selenium-webdriver
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|