mini_scheduler 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/mini_scheduler/manager.rb +4 -1
- data/lib/mini_scheduler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 777f9e6ead21883c1d387e2a0dde3385232ba427f815c4061bd2e458a67952a7
|
4
|
+
data.tar.gz: 70276e36f76000faa0754ab4c012adde2a4543c84e6ea6a53ed7c995baa14169
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51c6d80f4f13168b7b1c268a54c8b73e52d116c60d6c6065f6e9d7776e4cb0bd1358665538c43d7df890da062a5254b52b2bd962403d2fa3d96640a1d97fed44
|
7
|
+
data.tar.gz: fa88eda9058769f2c60abb6b041f87fc8923e78b2c00a2685d5be0be4a245ce22bbf7cd1bb9784410c2a9de6881ac5b1b231a4c989c1abc5a3ac7140e9382bcc
|
data/CHANGELOG.md
CHANGED
@@ -265,11 +265,14 @@ module MiniScheduler
|
|
265
265
|
|
266
266
|
if due.to_i <= Time.now.to_i
|
267
267
|
klass = get_klass(key)
|
268
|
-
|
268
|
+
if !klass || (
|
269
|
+
(klass.is_per_host && !hostname) || (hostname && !klass.is_per_host)
|
270
|
+
)
|
269
271
|
# corrupt key, nuke it (renamed job or something)
|
270
272
|
redis.zrem Manager.queue_key(queue, hostname), key
|
271
273
|
return
|
272
274
|
end
|
275
|
+
|
273
276
|
info = schedule_info(klass)
|
274
277
|
info.prev_run = Time.now.to_i
|
275
278
|
info.prev_result = "QUEUED"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-08-
|
12
|
+
date: 2019-08-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sidekiq
|