fanforce-worker 0.14.3 → 0.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/fanforce/worker/version.rb +1 -1
- data/lib/fanforce/worker/worker.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MWNkZDg3ZTQ1N2Y2NWY0M2ZkNWQ1NDEzN2ViNjI4YjM2Y2JhMDVlNA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
OWYwOWJhMmQ2ZTk5NzlmYTdiZjNmOTRhZmEzNzkwMjI4ODg4Y2I5ZA==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NTNlY2IzZTllYTRkZmFkMjY0NmI0YTRiNTk3NjhmNDVmODI3MjZmMmM1ODZh
|
|
10
|
+
MThjMjAxNzE3ZTU0MWE5ODI4OTY5ZjQ2ZjY0OWI3YmQ5YWRjYzA4YTlmYjVl
|
|
11
|
+
Njg5NTI5ODdmMzFjOGI1MWQ3MjFmMDY3NjNhZTY1NGQ2MmUzYjg=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MDRhNTBhN2EzYmYzZDkxYzcwZWNlMmQ2YzFkNTZmNGRhYzc0MmNlZTQ0Yzk1
|
|
14
|
+
NjhmNzM4ZmViMThkYmQ5Y2MxMzUwZGFjZDlkMDI2MTNiZDgyNThlODM3OTBj
|
|
15
|
+
NzVlNGMxY2FlOWVhZjgzYmIxNzQ2M2NmY2IyOWM2NGIxMTkxMWU=
|
|
@@ -185,7 +185,7 @@ class Fanforce::Worker
|
|
|
185
185
|
|
|
186
186
|
def self.job_has_enough_time_to_run(min_execution_time)
|
|
187
187
|
time_since_load = Time.now - LOADED_AT
|
|
188
|
-
return false if time_since_load
|
|
188
|
+
return false if time_since_load > MAX_EXECUTION_TIME
|
|
189
189
|
return false if worker_time_remaining < min_execution_time
|
|
190
190
|
return true
|
|
191
191
|
end
|