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: 9160676e1874d6706c018c62552548313751564e520aaead9dfe8619cb2b5de1
4
- data.tar.gz: 0407032be2d0e001faf6e5210fb63fbc5db968be9f35b3a2ceafe6a65aee896f
3
+ metadata.gz: c0f2ec50c3d53b14587cc8c1adeaa4b5db83418e047c44b5a151ed86822aa20d
4
+ data.tar.gz: 3e4bea08d6d4c70bbe18f6c1e8084c0cb6a485e0842062e32177906ad30792ec
5
5
  SHA512:
6
- metadata.gz: e8f5a4e6450526b7108cc56a49e935e25be98e8e2df6981f5c4930c2a9709c52a2ed5b16984b41c160ebe2cc9a2bfc1dd709742a13884fc6405dc2b815befcbc
7
- data.tar.gz: f9836b96dd73edf7a79067f092bf23a8002bdf8ebf92d19c6e3c5550b68b3366efa3aa9190e5b42aeeabf852d983332188a1a8c05185ef21aceb560969c921fc
6
+ metadata.gz: 944eae6b4e8df60178fe0db6f5938e9fe6c1af33cdb6ea7c6c63d1b0fd7d98fd3ca44b76fec8a483232057b3a939f433baaf45ca46588731a5d681a262ead66a
7
+ data.tar.gz: 4087e376d6301d26401dc3deff1b51c7e9987aef9a6492d43cb315e99ee36911bbbdc100fa226c8d03937b0971292fdb74a53942e9c63ae71de37b0eeed4cc85
@@ -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"
@@ -1,3 +1,3 @@
1
1
  module ThecoreBackgroundJobs
2
- VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`.chomp}"
2
+ VERSION = "3.0.7"
3
3
  end
@@ -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.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-02-16 00:00:00.000000000 Z
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.3.26
111
+ rubygems_version: 3.4.10
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Background workers for Thecore