fanforce-plugin-worker 2.0.0.rc7 → 2.0.0.rc8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fanforce/plugin_worker/version.rb +1 -1
- data/lib/fanforce/plugin_worker/worker.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71e14a39029c1c83d92402fb9834b57bfcc13c2a
|
4
|
+
data.tar.gz: ee81d36b510b3e83b8da81666e656ad9ba0384d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dea53c7fce7913e605827b243abd8e6a831c86f83b085d6f1afe0e0cd617fb71b4c2efcb2a04b0c9572693ee984c0a490542388f44046abfa1e70d4162e3ba2
|
7
|
+
data.tar.gz: b9e35175220525cf4d73b86feb84e8fa16d383a83c639221ede4ede7acfe8a46e1e14a8ca6a67170f637259b5a78260184e66e6a0b3b00a884b6cce22d9bedac
|
@@ -40,7 +40,7 @@ class Fanforce::PluginWorker
|
|
40
40
|
def self.enqueue(queue_id, params, options={})
|
41
41
|
raise 'Params being sent to the queue must be a Hash' if !params.is_a?(Hash)
|
42
42
|
|
43
|
-
if ENV['FANFORCE_WORKER_SHOULD_BYPASS_ENQUEUE']
|
43
|
+
if [true,'true'].include?(ENV['FANFORCE_WORKER_SHOULD_BYPASS_ENQUEUE'])
|
44
44
|
bypass_enqueue(queue_id, params)
|
45
45
|
else
|
46
46
|
queue_id = Utils.iron_queue_id(queue_id)
|
@@ -58,7 +58,7 @@ class Fanforce::PluginWorker
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def self.run(worker_data, min_execution_time=300, &code_block)
|
61
|
-
if ENV['FANFORCE_WORKER_SHOULD_BYPASS_ENQUEUE']
|
61
|
+
if [true,'true'].include?(ENV['FANFORCE_WORKER_SHOULD_BYPASS_ENQUEUE'])
|
62
62
|
RunnerLocal.new(worker_data, min_execution_time, &code_block)
|
63
63
|
else
|
64
64
|
Runner.new(worker_data, min_execution_time, &code_block)
|