thecore_background_jobs 3.0.5 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9160676e1874d6706c018c62552548313751564e520aaead9dfe8619cb2b5de1
4
- data.tar.gz: 0407032be2d0e001faf6e5210fb63fbc5db968be9f35b3a2ceafe6a65aee896f
3
+ metadata.gz: 02bdb571af544cb2fdcaa5944f4e689c69dd33fb39a8c398911fe0f3974c6f42
4
+ data.tar.gz: 76f184c6be828117006692f536a0a6e3d983c3f2fead34716f6dacc8297dfec5
5
5
  SHA512:
6
- metadata.gz: e8f5a4e6450526b7108cc56a49e935e25be98e8e2df6981f5c4930c2a9709c52a2ed5b16984b41c160ebe2cc9a2bfc1dd709742a13884fc6405dc2b815befcbc
7
- data.tar.gz: f9836b96dd73edf7a79067f092bf23a8002bdf8ebf92d19c6e3c5550b68b3366efa3aa9190e5b42aeeabf852d983332188a1a8c05185ef21aceb560969c921fc
6
+ metadata.gz: f2c983a9f8a4d415f5f90499e93cbc4a32b5e3c8a0f5b83e9e5dba588fc64c9f847838409cddd59181a657fdeb8ddd8beed2bd49de5be70e3519257847b2e1f5
7
+ data.tar.gz: 52ccd34357f7fa6cc8f3757baab55cae52ba3517c08a6f001d0b1d7c47a04050d0f7655b17c3c5fecb61c8166eb7dd64d4598452b85d53d7bb8f3c167e93f019
@@ -1,6 +1,6 @@
1
1
  class DemoWorker
2
2
  include Sidekiq::Worker
3
- sidekiq_options retry: false, queue: "#{ENV["COMPOSE_PROJECT_NAME"]}_default"
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.5
4
+ version: 3.0.6
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-02-16 00:00:00.000000000 Z
11
+ date: 2023-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-namespace