self.visibility_timeout_option

in lib/aws/active_job/sqs/cli_options.rb [62:74]


        def self.visibility_timeout_option(opts, out)
          doc = 'The visibility timeout is the number of seconds that a ' \
                'message will not be processable by any other consumers. ' \
                'You should set this value to be longer than your expected ' \
                'job runtime to prevent other processes from picking up an ' \
                'running job.  See the SQS Visibility Timeout Documentation ' \
                'at https://docs.aws.amazon.com/AWSSimpleQueueService/latest/' \
                'SQSDeveloperGuide/sqs-visibility-timeout.html.'
          opts.on('-v', '--visibility_timeout INTEGER', Integer, doc) do |a|
            out[:visibility_timeout] = a
          end
        end