sidekiq-dejavu 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/sidekiq-dejavu.rb +1 -1
- data/lib/sidekiq/dejavu/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c38483b976f52a6cf88695aa5a6227b4d1a4fd4e
|
4
|
+
data.tar.gz: e2c6a6542cf8966a4b434d99ce1f4605647ef92c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3b4918396de87e5387cf0d046ba9f0f9359e0a1b7062add99a40fa72344138acf865eaa78f00dec0d90970198d9fe3482dfbbedec637cc0f8ff24f7035f9172
|
7
|
+
data.tar.gz: e8f76cda5d1a2eadeb439844c8bbdd37cd0006131716e7a86fb806fe610c69ace8aef9290da368e9855368e7780cceaabb463e66ba318a82f13d50e157d94f96
|
data/README.md
CHANGED
@@ -13,9 +13,12 @@ Scheduled jobs can be controlled through the Scheduled page in the Sidekiq::Web
|
|
13
13
|
|
14
14
|
## Note
|
15
15
|
|
16
|
-
This is **
|
16
|
+
This is **BETA** quality code and doesn't yet have any specs, so make sure you test it well.
|
17
17
|
Requires Sidekiq 3.0 or later. Compatibility with older versions could probably be added.
|
18
18
|
|
19
|
+
Warning aside, this code has run in production since October 2014 and has scheduled several
|
20
|
+
million jobs without any issues. So if you want a very lightweight scheduler give it a shot.
|
21
|
+
|
19
22
|
## Known Bugs
|
20
23
|
|
21
24
|
- Incompatible with sidekiq-unique-jobs (jobs don't get scheduled)
|
data/lib/sidekiq-dejavu.rb
CHANGED
@@ -6,7 +6,7 @@ Sidekiq.configure_server do |config|
|
|
6
6
|
end
|
7
7
|
|
8
8
|
config.on(:startup) do
|
9
|
-
schedules = config.options
|
9
|
+
schedules = config.options[:schedule] || {}
|
10
10
|
Sidekiq.logger.debug "Sidekiq::Dejavu: schedules: #{schedules.inspect}"
|
11
11
|
if schedules.empty?
|
12
12
|
Sidekiq.logger.warn "Sidekiq::Dejavu: No schedule found."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-dejavu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Buenemann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.4.6
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: Dejavu is a clockless scheduler that uses Sidekiq's built-in scheduling
|