thecore_background_jobs 3.0.5 → 3.0.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0f2ec50c3d53b14587cc8c1adeaa4b5db83418e047c44b5a151ed86822aa20d
|
4
|
+
data.tar.gz: 3e4bea08d6d4c70bbe18f6c1e8084c0cb6a485e0842062e32177906ad30792ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 944eae6b4e8df60178fe0db6f5938e9fe6c1af33cdb6ea7c6c63d1b0fd7d98fd3ca44b76fec8a483232057b3a939f433baaf45ca46588731a5d681a262ead66a
|
7
|
+
data.tar.gz: 4087e376d6301d26401dc3deff1b51c7e9987aef9a6492d43cb315e99ee36911bbbdc100fa226c8d03937b0971292fdb74a53942e9c63ae71de37b0eeed4cc85
|
data/app/workers/demo_worker.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
class DemoWorker
|
2
2
|
include Sidekiq::Worker
|
3
|
-
sidekiq_options retry: false, queue: "#{ENV[
|
3
|
+
sidekiq_options retry: false, queue: "#{ENV['COMPOSE_PROJECT_NAME'].presence || 'notset'}_default"
|
4
4
|
|
5
5
|
def perform(*args)
|
6
6
|
puts "Worker is working"
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Set the default queue name for the analysis job to the queue adapter default.
|
2
|
-
Rails.application.config.active_storage.queues.analysis = "#{ENV['COMPOSE_PROJECT_NAME'] || 'notset'}_storage_analysis"
|
2
|
+
Rails.application.config.active_storage.queues.analysis = "#{ENV['COMPOSE_PROJECT_NAME'].presence || 'notset'}_storage_analysis"
|
3
3
|
|
4
4
|
# Set the default queue name for the purge job to the queue adapter default.
|
5
|
-
Rails.application.config.active_storage.queues.purge = "#{ENV['COMPOSE_PROJECT_NAME'] || 'notset'}_storage_purge"
|
5
|
+
Rails.application.config.active_storage.queues.purge = "#{ENV['COMPOSE_PROJECT_NAME'].presence || 'notset'}_storage_purge"
|
6
6
|
|
7
7
|
# Set the default queue name for the incineration job to the queue adapter default.
|
8
|
-
Rails.application.config.action_mailbox.queues.incineration = "#{ENV['COMPOSE_PROJECT_NAME'] || 'notset'}_mailbox_incinerate"
|
8
|
+
Rails.application.config.action_mailbox.queues.incineration = "#{ENV['COMPOSE_PROJECT_NAME'].presence || 'notset'}_mailbox_incinerate"
|
9
9
|
|
10
10
|
# Set the default queue name for the routing job to the queue adapter default.
|
11
|
-
Rails.application.config.action_mailbox.queues.routing = "#{ENV['COMPOSE_PROJECT_NAME'] || 'notset'}_mailbox_routing"
|
11
|
+
Rails.application.config.action_mailbox.queues.routing = "#{ENV['COMPOSE_PROJECT_NAME'].presence || 'notset'}_mailbox_routing"
|
12
12
|
|
13
13
|
# Set the default queue name for the mail deliver job to the queue adapter default.
|
14
|
-
Rails.application.config.action_mailer.deliver_later_queue_name = "#{ENV['COMPOSE_PROJECT_NAME'] || 'notset'}_mailers"
|
14
|
+
Rails.application.config.action_mailer.deliver_later_queue_name = "#{ENV['COMPOSE_PROJECT_NAME'].presence || 'notset'}_mailers"
|
@@ -35,7 +35,7 @@ module ThecoreBackgroundJobs
|
|
35
35
|
# If we have a setting and is different from the currently loaded, then replace it
|
36
36
|
# in scheduler configuration
|
37
37
|
Rails.logger.info "Setting #{schedule} exists: #{setting}"
|
38
|
-
Sidekiq.set_schedule(key, { cron: setting.squeeze(" ").strip, queue: "#{ENV["COMPOSE_PROJECT_NAME"]}_default", class: key })
|
38
|
+
Sidekiq.set_schedule(key, { cron: setting.squeeze(" ").strip, queue: "#{ENV["COMPOSE_PROJECT_NAME"].presence || 'notset'}_default", class: key })
|
39
39
|
Rails.logger.info "Reloading schedules"
|
40
40
|
SidekiqScheduler::Scheduler.instance.reload_schedule!
|
41
41
|
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: 3.0.
|
4
|
+
version: 3.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis-namespace
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
|
-
rubygems_version: 3.
|
111
|
+
rubygems_version: 3.4.10
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: Background workers for Thecore
|