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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2296e3b78c4cd2ca39de903ff7eaf2b198147b596fdc615143b3a58ea7d0e940
4
- data.tar.gz: 7a3289d51f83098ef40a2ae8768b838f3d695617ea312a9704627a37d4159ae8
3
+ metadata.gz: 8c7ce16ee37335d17b00c145f7cfdeca380a031610dc47d03eebd7a42ca8771a
4
+ data.tar.gz: ac159740d425e2599a44209b10372f22b57541c4c3f110a48d024c99619a17ae
5
5
  SHA512:
6
- metadata.gz: 198595c5e3d82916c17d175ee542412e1cfe7dd718394f1f1878049dbaf0dc718b84ba6c01ee74e716060747ff3e947175170b43c69884299d1c1a114d26e2ec
7
- data.tar.gz: 3f4fecc8444f2f8aea8d6aa5cd91361b2daf128e59e6a5d4fe0a41f2bb8b46fe3aed12cbf2fbc8254e7c0c39a768db6bc4aef81a45b35c43e1b0a61a38c3c980
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.5.
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.9.4/css/bulma.min.css">
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
- <tr>
4
- <th>Job class</th>
5
- <td><%= recurring_task.job_class_name %></td>
6
- </tr>
7
- <tr>
8
- <th>Arguments</th>
9
- <td><div class="is-family-monospace"><%= recurring_task.arguments.join(",") %></div></td>
10
- </tr>
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
- <%= link_to recurring_task.job_class_name, application_recurring_task_path(@application, recurring_task.id) %>
6
+ <% if recurring_task.job_class_name.present? %>
7
+ <%= recurring_task.job_class_name %>
7
8
 
8
- <% if recurring_task.arguments.present? %>
9
- <div class="is-family-monospace"><%= recurring_task.arguments.join(",") %></div>
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
 
@@ -1,5 +1,5 @@
1
1
  module MissionControl
2
2
  module Jobs
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.3"
4
4
  end
5
5
  end
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.1
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-08-16 00:00:00.000000000 Z
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.5'
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.5'
110
+ version: '0.9'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: selenium-webdriver
113
113
  requirement: !ruby/object:Gem::Requirement