deployangel 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5169af9bd2d83ec8ec1446d4ddf641a8908428bc8d50be14fc124a76cfdca936
4
- data.tar.gz: 466bff7d697f32e27362394130e2e1e0fc0f4e7c62a098740b3c38598443b0fe
3
+ metadata.gz: 633da2fd342948cb1c2b6f845f05b9a5262d9674a2f7d40f05532995f0751d7e
4
+ data.tar.gz: 63327a9c5226d6032f2d7fdc6e432fee07a2cec9bf9d979cd96905b8d362e22c
5
5
  SHA512:
6
- metadata.gz: 5be25747e622d3556d6f2b6d04351f1d3402f910045ad36e15b1e181b393955acee510906c37abafde57f7cfdde4b41d4742bcf6bcf6e90c549914a033f1205d
7
- data.tar.gz: ed4075d93e23c0a96b813bb385384de53cd05ca878e3e77140af6cae1eeb827e52c5fef5bb8fcfd40e162cac62ead212ea74a019c93bae629ad55fc1dbbd0365
6
+ metadata.gz: 70be2af92e45071c06cf09d60ec43a301db1803eabe917f294927b73d82917283fb9f6cb81af1b6e2daf522b65c52dc9985f1c75c3a16f006157b797c6e2bd15
7
+ data.tar.gz: 40518de68db5c3588bccb02e90068dbcc378b342a3ca0325d6a59c253cfa5daead535a54203247d9f58b5910f6d29b3ab2bdec8b23144515141754478bc5417a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.4 (2026-10-03)
4
+
5
+ - A Solid Queue recurring task that runs a `command:` instead of a job class
6
+ reports the job class it runs as (`runs_as`, `SolidQueue::RecurringJob`
7
+ unless the app changes Solid Queue's default). DeployAngel can then expect
8
+ it on schedule and show it by its name in `config/recurring.yml`, instead
9
+ of guessing an interval from history and showing Solid Queue's wrapper.
10
+
3
11
  ## 0.1.3 (2026-10-02)
4
12
 
5
13
  - Each process sends its minute of telemetry 1 to 50 seconds after the
@@ -68,13 +68,25 @@ module DeployAngel
68
68
  Array(tasks).filter_map do |key, task|
69
69
  next unless task.is_a?(Hash) && task["schedule"]
70
70
 
71
- { "key" => key.to_s, "class" => task["class"]&.to_s, "schedule" => task["schedule"].to_s, "source" => "solid_queue",
71
+ schedule = { "key" => key.to_s, "class" => task["class"]&.to_s, "schedule" => task["schedule"].to_s, "source" => "solid_queue",
72
72
  "time_zone" => scheduler_time_zone }
73
+ schedule["runs_as"] = command_job_class if task["class"].nil? && task["command"]
74
+ schedule
73
75
  end
74
76
  rescue StandardError
75
77
  []
76
78
  end
77
79
 
80
+ # A command task runs as a job of this class, so its runs show up in
81
+ # job telemetry under that name.
82
+ def command_job_class
83
+ if defined?(::SolidQueue::RecurringTask) && ::SolidQueue::RecurringTask.respond_to?(:default_job_class)
84
+ ::SolidQueue::RecurringTask.default_job_class&.name
85
+ end || "SolidQueue::RecurringJob"
86
+ rescue StandardError
87
+ "SolidQueue::RecurringJob"
88
+ end
89
+
78
90
  # The zone Solid Queue reads a schedule in when the schedule names
79
91
  # none: its own setting, config.time_zone by default. nil when that's
80
92
  # the system's local time or Solid Queue predates the setting, and
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeployAngel
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deployangel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Owens