thecore_background_jobs 3.0.4 → 3.0.6

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: af6494d8654aefdbec32dc6b96ffbd27626e627c99f7892c3311edbfdcc76c9f
4
- data.tar.gz: 3979727c571745860488e5ac7d3f71777932f8bfa05bf3b243b8737c5444e30f
3
+ metadata.gz: 02bdb571af544cb2fdcaa5944f4e689c69dd33fb39a8c398911fe0f3974c6f42
4
+ data.tar.gz: 76f184c6be828117006692f536a0a6e3d983c3f2fead34716f6dacc8297dfec5
5
5
  SHA512:
6
- metadata.gz: a25e00814257c2569c157ac5cd3be4119670e761ec2be11e8c91b262b37d922463b27eb965fdbf6fa620e66c1f5245bf8918cb0dd239e179bb9ae7fef810506b
7
- data.tar.gz: 0f359b0dd89b545146ed2c1f16b12d766455d02e85637bf7e766285af7bcf88e7a60f074c53f8ac88a4b4e6029759da33ad024dc16c894b1179a124b92edee46
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,3 +1,4 @@
1
+ puts "Settings Concern from ThecoreBackgroundJobs"
1
2
  require 'active_support/concern'
2
3
 
3
4
  module ThecoreBackgroundSettingsConcern
@@ -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
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-11 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