switchman-inst-jobs 3.2.0 → 3.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9eece1d5d1e3c141c242aa24a81d5582a34639f09ea55e9826ed95504e442a22
|
4
|
+
data.tar.gz: 3e45e49e403dc6b0d60c7803c84b23d48aaf05ce675b3d40e275d9a83b562b28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5f209f5e754d2ec9d31af0afe618894c45b10f0be2c8d04e8fdbf4565c4f70ec4a3546fb3c86520832e5b5f102fd8fb2572ccaacaa8a2f332422d8b4fc93278
|
7
|
+
data.tar.gz: c59a09f62c4c2247dd3b8a62520f94490d9c1b84988f131f4c19abb759eb5f20397553b68617c2fe00d5a15c1f169b2e1ceff4ad2fa3882487d53ec297d71032
|
@@ -73,7 +73,7 @@ module SwitchmanInstJobs
|
|
73
73
|
self.shard_id = shard.id
|
74
74
|
self.shard_id = nil if shard.is_a?(::Switchman::DefaultShard)
|
75
75
|
# If jobs are held for a shard, enqueue new ones as held as well
|
76
|
-
return unless shard.jobs_held
|
76
|
+
return unless ::Switchman::Shard.columns_hash.key?('jobs_held') && shard.jobs_held
|
77
77
|
|
78
78
|
self.locked_by = ::Delayed::Backend::Base::ON_HOLD_LOCKED_BY
|
79
79
|
self.locked_at = ::Delayed::Job.db_time_now
|