thecore_background_jobs 2.1.0 → 2.1.4

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: 79100472262d757000844d14246c1d1ea161443abbc4079c3e7b109235ddfdeb
4
- data.tar.gz: fd4bcbe11df64eacec37ba6d6a980ee8f07eee2c17f686f4213ddab085e11625
3
+ metadata.gz: 25822f9c80f3f04065323e8a959852aacff9a4d8fa9bc81997e8c4a3e9208b2b
4
+ data.tar.gz: 3c1b4fe01ac7612d52e45e87774df6ae8b5de26d463c0d98b1a13db31bc70fef
5
5
  SHA512:
6
- metadata.gz: 668d2e1427fc4dfef65a7bfee5c62c81678d953db32d009cbf4390d2e80f379f437c4cc420053580e697b8e37d2257d83e7d28e689863ae40c23add96311a07a
7
- data.tar.gz: '02482fb14a3676605043b178a0f2b66918997145abcb328d3b420160af136a2fe9c0001b4daaacb7ee00c8f1792b8e7e385e47c3330b8ff122e7aa94f552ce5b'
6
+ metadata.gz: 914a95a8a3ae73a3436bb93ce3bac566d5895ae6e8fb553a5efc88ccd44da26bfdb6c9c57df0594b07bb4d69c7459ef0824e38c7a717961733df03294da5feb1
7
+ data.tar.gz: 2c11d53d3822056e05e047f01af74c5e9ec2e48c8a78edef97a6272761649c93096aac4183d42e60cd3cf080bf11d9d03c210f8654dc83470d07380cf5097894
@@ -0,0 +1,25 @@
1
+ # require 'sidekiq'
2
+
3
+ # current_db = rand(1..15)
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
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.0
4
+ version: 2.1.4
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-09-21 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_backend_commons
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
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
@@ -77,6 +91,7 @@ files:
77
91
  - README.md
78
92
  - Rakefile
79
93
  - app/workers/demo_worker.rb
94
+ - config/initializers/sidekiq-thecore.rb
80
95
  - config/routes.rb
81
96
  - lib/admin_constraint.rb
82
97
  - lib/tasks/thecore_background_jobs_tasks.rake