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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1819694e6ec5bc9cad69f0a3d7edaad53d4daae80ee0af95312044d503e40d1
4
- data.tar.gz: 1577ab483b8fc8a16dc614c12156e2161a3ab2d372b45ee7825f30837fdc36e4
3
+ metadata.gz: 5aa472d5bdd8c86fe0502451f7554598d189fa0d5004603d8970561feed38d9f
4
+ data.tar.gz: 669d564cb23fccc41a9b5a3dd37c49a17787adf7fcecd486746f9d91031d8367
5
5
  SHA512:
6
- metadata.gz: 1fc162b425d00a308679662d4a48753dbe1fac0ab252d329ad10622f894301de2e35dcc2ca3c0d9366b516ebbce7e8d008fd37ee1c2526d9f5a5be3188d6380f
7
- data.tar.gz: b09c3c0a0c7980b9bd2431754001c8b3f18d6a21981dbb7dd5b1336f60a3411e26c5c938b3d55e48039c2306ffac54bc2f95c4beac4700b994fdcf4168900ddc
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '1.22.1'
4
+ VERSION = '1.22.2'
5
5
  end
@@ -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.1
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-04 00:00:00.000000000 Z
11
+ date: 2023-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro_turf