thecore_background_jobs 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/sidekiq-thecore.rb +10 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feb6c6d0e4602072c64355f3869c7f77c8eba1920f7267a88cdecf015fe9bb6b
|
4
|
+
data.tar.gz: f1781ef19c59b1c8d74e84fb7e6e99149aa9bf3a3271ba02e99941ff5c608103
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60cfc2fb29d58664dd70fde1511903dbff5daed0fadaea29e6a0ceb3ff7c015cf6ffff49f38ae854e34aeddf6703143fa92c2b73d3513a7f40922131e47499db
|
7
|
+
data.tar.gz: 461caa46a1182c64697a0c2b118dfd1da6d8b8d0a5124efa8f5233b19cf2afe8083479c805fae7a9c5aefbd48cfcd16eb46a7b1c76b27943f947aff1b7599533
|
@@ -0,0 +1,10 @@
|
|
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
|
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.
|
4
|
+
version: 2.1.1
|
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-
|
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
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- README.md
|
78
78
|
- Rakefile
|
79
79
|
- app/workers/demo_worker.rb
|
80
|
+
- config/initializers/sidekiq-thecore.rb
|
80
81
|
- config/routes.rb
|
81
82
|
- lib/admin_constraint.rb
|
82
83
|
- lib/tasks/thecore_background_jobs_tasks.rake
|