coil 1.5.0 → 1.5.1
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 +4 -4
- data/CHANGELOG.md +57 -0
- data/app/jobs/coil/transactional_messages_periodic_job.rb +9 -3
- data/lib/coil/version.rb +1 -1
- data/rbi/coil.rbi +3 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1f2b39ca3971b9e5cdab940d3bdf4d337da12a50b31c6d01426a503fa1c81f1
|
4
|
+
data.tar.gz: 82d60c9a84136f3b34bfe83679510d4c6c5d20cb73bf24dd78b968bcf8900dcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb5f38cfe1e2a3777227e5ecca9a46775595eca487ad0ece63e2341df31e97bbaab21982ff5853b47ad777584b312200ee96369edd9a2660bbfec4704155f340
|
7
|
+
data.tar.gz: c2054aec3f317daf195e2d34ac39b9544fbd8f7713379f0fae6d70e02bb53be57e9ea34913b407839d8043bc08bc430c99b41b61b8068bb028d7915a88c47135
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
## main
|
2
|
+
|
3
|
+
## [1.5.1](https://github.com/OdekoTeam/coil/compare/1.5.0...1.5.1) (2025-01-29)
|
4
|
+
#### Fixed
|
5
|
+
- Avoid `ActiveRecord::SubclassNotFound` on orphaned messages ([ea3a64a](https://github.com/OdekoTeam/coil/commit/ea3a64acfcb9f05d53e242f96eb1b525761e414d))
|
6
|
+
|
7
|
+
## [1.5.0](https://github.com/OdekoTeam/coil/compare/1.4.0...1.5.0) (2025-01-29)
|
8
|
+
#### Added
|
9
|
+
- Periodic cleanup jobs ([0e784b3](https://github.com/OdekoTeam/coil/commit/0e784b3684b8e12677e6d05bc0a7762e254e6357))
|
10
|
+
- jobs: `Coil::Inbox::MessagesCleanupJob`, `Coil::Outbox::MessagesCleanupJob`
|
11
|
+
- configuration settings: `Coil.inbox_retention_period`, `Coil.outbox_retention_period`
|
12
|
+
- **NOTE**: this release includes additional migrations, so **be sure to run** `bundle exec rails coil:install:migrations db:migrate`
|
13
|
+
|
14
|
+
## [1.4.0](https://github.com/OdekoTeam/coil/compare/1.3.3...1.4.0) (2024-12-11)
|
15
|
+
#### Added
|
16
|
+
- `Coil.sidekiq_queue` configuration setting ([15fb072](https://github.com/OdekoTeam/coil/commit/15fb072284bad1eeb5661d3b037d3e07bb46c59a))
|
17
|
+
#### Fixed
|
18
|
+
- Redundant variable in test ([cd41472](https://github.com/OdekoTeam/coil/commit/cd414726298ce80153f508f755bedd371bbb8dab))
|
19
|
+
|
20
|
+
## [1.3.3](https://github.com/OdekoTeam/coil/compare/1.3.2...1.3.3) (2024-10-25)
|
21
|
+
#### Changed
|
22
|
+
- Documentation ([b25f00c](https://github.com/OdekoTeam/coil/commit/b25f00c19dfdb4cd3653ce715ace0be3145046e9))
|
23
|
+
|
24
|
+
## [1.3.2](https://github.com/OdekoTeam/coil/compare/1.3.1...1.3.2) (2024-10-24)
|
25
|
+
#### Fixed
|
26
|
+
- Build warnings ([f1c1145](https://github.com/OdekoTeam/coil/commit/f1c11459b5b54567c0b267ae6279f776ec33a680))
|
27
|
+
|
28
|
+
## [1.3.1](https://github.com/OdekoTeam/coil/compare/1.3.0...1.3.1) (2024-10-22)
|
29
|
+
#### Added
|
30
|
+
- CI publish to RubyGems.org ([cbc46bb](https://github.com/OdekoTeam/coil/commit/cbc46bbc153d1a7fa9d51dbf134dabe894cd594d))
|
31
|
+
|
32
|
+
## [1.3.0](https://github.com/OdekoTeam/coil/compare/1.2.1...1.3.0) (2024-10-22)
|
33
|
+
#### Added
|
34
|
+
- License ([caf8a2f](https://github.com/OdekoTeam/coil/commit/caf8a2ff68672f434eeb092e876bb6df8852b6b1))
|
35
|
+
#### Changed
|
36
|
+
- CI Docker registry ([1a2586d](https://github.com/OdekoTeam/coil/commit/1a2586db9541134c1e433d112591457a6ee9edc0))
|
37
|
+
|
38
|
+
## [1.2.1](https://github.com/OdekoTeam/coil/compare/1.2.0...1.2.1) (2024-07-01)
|
39
|
+
#### Fixed
|
40
|
+
- `next_message` race condition ([eb43a90](https://github.com/OdekoTeam/coil/commit/eb43a900c2db4300fc41c6c874aca66868039718))
|
41
|
+
|
42
|
+
## [1.2.0](https://github.com/OdekoTeam/coil/compare/1.0.1...1.2.0) (2024-06-10)
|
43
|
+
#### Added
|
44
|
+
- `around_process` job method ([46d3d5b](https://github.com/OdekoTeam/coil/commit/46d3d5b53f6dd066d5add024f39120c6140c14f3))
|
45
|
+
#### Fixed
|
46
|
+
- type aliases documentation ([d5da8d1](https://github.com/OdekoTeam/coil/commit/d5da8d13de6ac6fa9df6ba7c281db86090358f7f))
|
47
|
+
|
48
|
+
## [1.0.1](https://github.com/OdekoTeam/coil/compare/1.0.0...1.0.1) (2024-06-07)
|
49
|
+
#### Fixed
|
50
|
+
- `QueueLocking` documentation ([285a5cb](https://github.com/OdekoTeam/coil/commit/285a5cb13bffa3b824c54b59c02be2bbad93bef4))
|
51
|
+
- Support for older Rails and Sidekiq versions ([2051243](https://github.com/OdekoTeam/coil/commit/205124313b75feaf42aac10aa7455bc54a2394f0))
|
52
|
+
#### Changed
|
53
|
+
- CI Docker image ([4da1d3f](https://github.com/OdekoTeam/coil/commit/4da1d3ffdf8bb8fe03d14466ae26640159942bca))
|
54
|
+
|
55
|
+
## 1.0.0 (2024-06-06)
|
56
|
+
#### Added
|
57
|
+
- First release
|
@@ -12,9 +12,10 @@ module Coil
|
|
12
12
|
# the distinct keys for which we have unprocessed messages (excluding
|
13
13
|
# very recent messages, since a TransactionalMessagesJob may still be
|
14
14
|
# processing those). Then, enqueue the necessary jobs for those keys.
|
15
|
-
message_parent_class.select(:type).distinct.each do |
|
16
|
-
message_class =
|
17
|
-
|
15
|
+
message_parent_class.select(:type).distinct.pluck(:type).each do |type|
|
16
|
+
message_class = message_class_for(type)
|
17
|
+
next unless message_class.present?
|
18
|
+
job_class = message_class.new.job_class
|
18
19
|
|
19
20
|
message_class
|
20
21
|
.unprocessed(processor_name: job_class.name)
|
@@ -27,6 +28,11 @@ module Coil
|
|
27
28
|
|
28
29
|
private
|
29
30
|
|
31
|
+
def message_class_for(type)
|
32
|
+
message_parent_class.sti_class_for(type)
|
33
|
+
rescue ActiveRecord::SubclassNotFound
|
34
|
+
end
|
35
|
+
|
30
36
|
def message_parent_class
|
31
37
|
end
|
32
38
|
end
|
data/lib/coil/version.rb
CHANGED
data/rbi/coil.rbi
CHANGED
@@ -378,6 +378,9 @@ class Coil::TransactionalMessagesPeriodicJob < ::Coil::ApplicationJob
|
|
378
378
|
|
379
379
|
private
|
380
380
|
|
381
|
+
sig { params(type: String).returns(T.nilable(::Coil::AnyMessageClass)) }
|
382
|
+
def message_class_for(type); end
|
383
|
+
|
381
384
|
sig { abstract.returns(::Coil::AnyMessageClass) }
|
382
385
|
def message_parent_class; end
|
383
386
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Brennan
|
@@ -249,6 +249,7 @@ executables: []
|
|
249
249
|
extensions: []
|
250
250
|
extra_rdoc_files: []
|
251
251
|
files:
|
252
|
+
- CHANGELOG.md
|
252
253
|
- LICENSE
|
253
254
|
- README.md
|
254
255
|
- Rakefile
|