deimos-ruby 1.22.1 → 1.22.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/deimos/version.rb +1 -1
- data/lib/tasks/deimos.rake +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aa472d5bdd8c86fe0502451f7554598d189fa0d5004603d8970561feed38d9f
|
4
|
+
data.tar.gz: 669d564cb23fccc41a9b5a3dd37c49a17787adf7fcecd486746f9d91031d8367
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f49565845478349949d7dd5909b7d276590f91201d0848123c42a0b433114ce2a31cda8a0d43058f6f3f76114d3dfc1d32b8ee53a2a291588865ed5aaa8a8ec
|
7
|
+
data.tar.gz: 295802ba93bbf1e8a9c6ca95ac1944b85d3676881c3cb37854f883d42630f68f11a8971527611f1bf1c4681e5b8fab4aa202c1bcd2b1863296236b9a175bd253
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## UNRELEASED
|
9
9
|
|
10
|
+
# 1.22.2 - 2023-05-10
|
11
|
+
- Feature: Add `DEIMOS_TASK_NAME` env variable when running a task (consumer, DB poller, DB producer).
|
12
|
+
|
10
13
|
# 1.22.1 - 2023-05-01
|
11
14
|
|
12
15
|
- Fix: Bug introduced with 1.22 when associations are not used
|
data/lib/deimos/version.rb
CHANGED
data/lib/tasks/deimos.rake
CHANGED
@@ -12,6 +12,7 @@ namespace :deimos do
|
|
12
12
|
config.producers.backend = :kafka if config.producers.backend == :kafka_async
|
13
13
|
end
|
14
14
|
ENV['DEIMOS_RAKE_TASK'] = 'true'
|
15
|
+
ENV['DEIMOS_TASK_NAME'] = 'consumer'
|
15
16
|
STDOUT.sync = true
|
16
17
|
Rails.logger.info('Running deimos:start rake task.')
|
17
18
|
Phobos::CLI::Commands.start(%w(start --skip_config))
|
@@ -20,6 +21,7 @@ namespace :deimos do
|
|
20
21
|
desc 'Starts the Deimos database producer'
|
21
22
|
task db_producer: :environment do
|
22
23
|
ENV['DEIMOS_RAKE_TASK'] = 'true'
|
24
|
+
ENV['DEIMOS_TASK_NAME'] = 'db_producer'
|
23
25
|
STDOUT.sync = true
|
24
26
|
Rails.logger.info('Running deimos:db_producer rake task.')
|
25
27
|
thread_count = ENV['THREAD_COUNT'].to_i.zero? ? 1 : ENV['THREAD_COUNT'].to_i
|
@@ -28,6 +30,7 @@ namespace :deimos do
|
|
28
30
|
|
29
31
|
task db_poller: :environment do
|
30
32
|
ENV['DEIMOS_RAKE_TASK'] = 'true'
|
33
|
+
ENV['DEIMOS_TASK_NAME'] = 'db_poller'
|
31
34
|
STDOUT.sync = true
|
32
35
|
Rails.logger.info('Running deimos:db_poller rake task.')
|
33
36
|
Deimos::Utils::DbPoller.start!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deimos-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.22.
|
4
|
+
version: 1.22.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Orner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avro_turf
|