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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 324689a31f8f494316a58699381894fa31d99567e5f93c58c29eae0f3bcc6fcc
4
- data.tar.gz: aeababfda51718aa05b3f1738dac50b9e24f25653133cc1d36fe434265a47e5e
3
+ metadata.gz: 777f9e6ead21883c1d387e2a0dde3385232ba427f815c4061bd2e458a67952a7
4
+ data.tar.gz: 70276e36f76000faa0754ab4c012adde2a4543c84e6ea6a53ed7c995baa14169
5
5
  SHA512:
6
- metadata.gz: 2e7dec4a84b48fba2497e17250bbf1d571780d5ce3eccf2d8e9740f62f135feac5c3c176296ff8debb08381b2a0e9f7cd7c27553091f13d19e854dda4ae05266
7
- data.tar.gz: d7b9c791395231b3db2fdfd231754ccb621c8b542b1da648963aed9d3aebcbd324a7d9bd14a9e057cf597e62aa752ffca171302c784e6dda5f64e2078debd42d
6
+ metadata.gz: 51c6d80f4f13168b7b1c268a54c8b73e52d116c60d6c6065f6e9d7776e4cb0bd1358665538c43d7df890da062a5254b52b2bd962403d2fa3d96640a1d97fed44
7
+ data.tar.gz: fa88eda9058769f2c60abb6b041f87fc8923e78b2c00a2685d5be0be4a245ce22bbf7cd1bb9784410c2a9de6881ac5b1b231a4c989c1abc5a3ac7140e9382bcc
@@ -1,3 +1,7 @@
1
+ # 0.12.1 - 30-08-2019
2
+
3
+ - Jobs that change family from per host to non per host can cause a tight loop
4
+
1
5
  # 0.12.0 - 29-08-2019
2
6
 
3
7
  - Add support for multiple workers which allows avoiding queue starvation
@@ -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
- unless klass
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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MiniScheduler
4
- VERSION = "0.12.0"
4
+ VERSION = "0.12.1"
5
5
  end
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.0
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-29 00:00:00.000000000 Z
12
+ date: 2019-08-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sidekiq