thecore_background_jobs 2.1.1 → 2.2.0

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: feb6c6d0e4602072c64355f3869c7f77c8eba1920f7267a88cdecf015fe9bb6b
4
- data.tar.gz: f1781ef19c59b1c8d74e84fb7e6e99149aa9bf3a3271ba02e99941ff5c608103
3
+ metadata.gz: 568d3e05f92ae53386ca01b21c88412e3ea4620f4cfec052dd63bf608d715747
4
+ data.tar.gz: ca70a41f78ada09bba806a0d1710aa469dafecb1c47298a23cd693d1dcbb7a9a
5
5
  SHA512:
6
- metadata.gz: 60cfc2fb29d58664dd70fde1511903dbff5daed0fadaea29e6a0ceb3ff7c015cf6ffff49f38ae854e34aeddf6703143fa92c2b73d3513a7f40922131e47499db
7
- data.tar.gz: 461caa46a1182c64697a0c2b118dfd1da6d8b8d0a5124efa8f5233b19cf2afe8083479c805fae7a9c5aefbd48cfcd16eb46a7b1c76b27943f947aff1b7599533
6
+ metadata.gz: 55e1255ddc4070c0b09594d0407e7c75c461e1915e05cfa21638f0a081d0083151cdd3904558f97a2622e6391d6d0320a9bebfd7f3cd8dae54590bf85eb1e370
7
+ data.tar.gz: e907a15c4b7a460668820a7a83a8933e99181c2174cdf64b4061c0cffa1a9ba706b3ca90ce19ef5c826795dd76e113b0aa3b9696b44d72ed7fdc140679137490
@@ -1,10 +1,25 @@
1
- require 'sidekiq'
1
+ # require 'sidekiq'
2
2
 
3
- current_db = rand(1..15)
3
+ # current_db = rand(1..15)
4
4
 
5
- Sidekiq.configure_server do |config|
6
- config.redis = { :namespace => "#{ENV['COMPOSE_PROJECT_NAME'] || 'notset'}", :url => "#{ENV['REDIS_URL']}/#{current_db}" }
7
- end
8
- Sidekiq.configure_client do |config|
9
- config.redis = { :namespace => "#{ENV['COMPOSE_PROJECT_NAME'] || 'notset'}", :url => "#{ENV['REDIS_URL']}/#{current_db}" }
10
- end
5
+ # Sidekiq.configure_server do |config|
6
+ # config.redis = { :namespace => "#{ENV['COMPOSE_PROJECT_NAME'] || 'notset'}", :url => "#{ENV['REDIS_URL']}/#{current_db}" }
7
+ # end
8
+ # Sidekiq.configure_client do |config|
9
+ # config.redis = { :namespace => "#{ENV['COMPOSE_PROJECT_NAME'] || 'notset'}", :url => "#{ENV['REDIS_URL']}/#{current_db}" }
10
+ # end
11
+
12
+ # Set the default queue name for the analysis job to the queue adapter default.
13
+ Rails.application.config.active_storage.queues.analysis = "#{ENV['COMPOSE_PROJECT_NAME'] || 'notset'}_storage_analysis"
14
+
15
+ # Set the default queue name for the purge job to the queue adapter default.
16
+ Rails.application.config.active_storage.queues.purge = "#{ENV['COMPOSE_PROJECT_NAME'] || 'notset'}_storage_purge"
17
+
18
+ # Set the default queue name for the incineration job to the queue adapter default.
19
+ Rails.application.config.action_mailbox.queues.incineration = "#{ENV['COMPOSE_PROJECT_NAME'] || 'notset'}_mailbox_incinerate"
20
+
21
+ # Set the default queue name for the routing job to the queue adapter default.
22
+ Rails.application.config.action_mailbox.queues.routing = "#{ENV['COMPOSE_PROJECT_NAME'] || 'notset'}_mailbox_routing"
23
+
24
+ # Set the default queue name for the mail deliver job to the queue adapter default.
25
+ Rails.application.config.action_mailer.deliver_later_queue_name = "#{ENV['COMPOSE_PROJECT_NAME'] || 'notset'}_mailers"
@@ -1,4 +1,5 @@
1
1
  require 'thecore_backend_commons'
2
+ require 'redis-namespace'
2
3
  require 'sidekiq'
3
4
  require "sidekiq-scheduler"
4
5
  require "sidekiq-failures"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_background_jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2022-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_backend_commons
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '2.4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '2.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: redis-namespace
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.8'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.8'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: sidekiq
29
43
  requirement: !ruby/object:Gem::Requirement