sidekiq-scheduler 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sidekiq-scheduler/version.rb +1 -1
- data/lib/sidekiq-scheduler.rb +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb14c4d168f6e6e04f004a797c8a9247323a8a74
|
4
|
+
data.tar.gz: 230b4f176c716ca9bef539b4dc1d3f428d1ca48d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca5651d5962fbe5981ec4d57c43bb8114bad49d8160603168b2b8fda14a666abfa6b871e401e43b610b87c05ebd1f9652a37353b3110052da4feb97e25df94fd
|
7
|
+
data.tar.gz: 50563b08976a926199ccc2cc5dea1bd133574e3e5772c821b2be9e7ae3dd15da90cc7d633173717b3f34aa967eff19b4959db1214085bc11d4d9a20f178e13bd
|
data/lib/sidekiq-scheduler.rb
CHANGED
@@ -7,10 +7,16 @@ require_relative 'sidekiq-scheduler/manager'
|
|
7
7
|
Sidekiq.configure_server do |config|
|
8
8
|
|
9
9
|
config.on(:startup) do
|
10
|
+
dynamic = Sidekiq::Scheduler.dynamic
|
11
|
+
dynamic = dynamic.nil? ? config.options.fetch(:dynamic, false) : dynamic
|
12
|
+
|
13
|
+
enabled = Sidekiq::Scheduler.enabled
|
14
|
+
enabled = enabled.nil? ? config.options.fetch(:enabled, true) : enabled
|
15
|
+
|
10
16
|
scheduler_options = {
|
11
17
|
scheduler: config.options.fetch(:scheduler, true),
|
12
|
-
dynamic:
|
13
|
-
enabled:
|
18
|
+
dynamic: dynamic,
|
19
|
+
enabled: enabled,
|
14
20
|
schedule: config.options.fetch(:schedule, nil)
|
15
21
|
}
|
16
22
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Morton Jonuschat
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-02-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sidekiq
|