lib/shoryuken/options.rb in shoryuken-4.0.0 vs lib/shoryuken/options.rb in shoryuken-4.0.1
- old
+ new
@@ -21,10 +21,11 @@
@@sqs_client_receive_message_opts = {}
@@start_callback = nil
@@stop_callback = nil
@@worker_executor = Worker::DefaultExecutor
@@launcher_executor = nil
+ @@cache_visiblity_timeout = false
class << self
def active_job?
defined?(::ActiveJob)
end
@@ -217,9 +218,17 @@
Middleware::Chain.new
end
def server?
defined?(Shoryuken::CLI)
+ end
+
+ def cache_visiblity_timeout?
+ @@cache_visiblity_timeout
+ end
+
+ def cache_visiblity_timeout=(cache_visiblity_timeout)
+ @@cache_visiblity_timeout = cache_visiblity_timeout
end
end
end
end