thecore_background_jobs 2.2.3 → 3.0.0

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: 308eed28d763fd5e8cc373dcb1e4a6c972bdf36f6e5c57a36cbeceb5fa315ed3
4
- data.tar.gz: dcd23fcc082b34804513a049ba27f02beae9593f54be6f6ec5951f239624b1fd
3
+ metadata.gz: 7c03c0bc38714a82286ff7c4ee235865990b64a0d45d3c5808d542d0eb920a70
4
+ data.tar.gz: 871bc6bfefc81985557c5e8005aeb0d761c1758220a69395724d432915e8bbcd
5
5
  SHA512:
6
- metadata.gz: 9ce274757e53ab219c5f868f1d11469df27610c9f300098276d298872fcdfca28613438da9b9e4f738c20b833e8945da8b565bfd51e5073d3e67c3bed9051505
7
- data.tar.gz: b551544d56b8dc68b0cb8f4821dceec36c4b622d5a3cdcafd3eeb40bda3998f28945d4374558fabffbce02b9d9b1c470bdef2ff32a80967d14eb67e496fcd03c
6
+ metadata.gz: '049fbccdb57c450edb44cff580d5846291b66384ab45ceeb58b0617333ba514703b1b2c5a18717e7d891f18532f4d5908f0e49b764f82135c4b65ab99a05fb45'
7
+ data.tar.gz: c76b92119a7f6a108e0dd37e573fabbead34c6b9c1f60d88b87082395432537ce2c116571eaab1cea96223352ec08dc329c4628489bec3ccbe85d5f8d66e4bda
@@ -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.0" # "#{`git describe --tags $(git rev-list --tags --max-count=1)`.chomp}"
3
3
  end
@@ -36,7 +36,7 @@ module ThecoreBackgroundJobs
36
36
  # If we have a setting and is different from the currently loaded, then replace it
37
37
  # in scheduler configuration
38
38
  Rails.logger.info "Setting #{schedule} exists: #{setting}"
39
- Sidekiq.set_schedule(key.underscore, { cron: setting.squeeze(" ").strip, queue: "#{ENV["COMPOSE_PROJECT_NAME"]}_default", class: key })
39
+ Sidekiq.set_schedule(key, { cron: setting.squeeze(" ").strip, queue: "#{ENV["COMPOSE_PROJECT_NAME"]}_default", class: key })
40
40
  Rails.logger.info "Reloading schedules"
41
41
  SidekiqScheduler::Scheduler.instance.reload_schedule!
42
42
  end
@@ -45,16 +45,5 @@ module ThecoreBackgroundJobs
45
45
  Rails.logger.info "Thecore Background Jobs: REDIS not reachable:"
46
46
  Rails.logger.info exception.message
47
47
  end
48
- # check_in_stock_parcels = ThecoreSettings::Setting.where(ns: "schedules", key: "cron_for_check_in_stock_parcels").pluck(:raw).first
49
- # unless check_in_stock_parcels.blank?
50
- # begin
51
- # Rails.logger.info "Setting the schedule during initialization"
52
- # Sidekiq.set_schedule('check_in_stock_parcels', { cron: check_in_stock_parcels, queue: "#{ENV["COMPOSE_PROJECT_NAME"]}_default", class: 'ScheduleEmployeeReminderForInStockParcelsJob' })
53
- # Rails.logger.info "Reloading schedules during initialization"
54
- # SidekiqScheduler::Scheduler.instance.reload_schedule!
55
- # rescue => exception
56
- # Rails.logger.info exception.message
57
- # end
58
- # end
59
48
  end
60
49
  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.2.3
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-19 00:00:00.000000000 Z
11
+ date: 2023-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_backend_commons
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.4'
19
+ version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.4'
26
+ version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: redis-namespace
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '6.0'
47
+ version: '7.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '6.0'
54
+ version: '7.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sidekiq-scheduler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.0'
61
+ version: '4.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.0'
68
+ version: '4.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sidekiq-failures
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
- rubygems_version: 3.0.3.1
122
+ rubygems_version: 3.3.26
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Thecorized thecore_background_jobs