class Aws::Rails::Middleware::ElasticBeanstalkSQSD

def shutdown(timeout = nil)

def shutdown(timeout = nil)
  return unless @executor
  @logger.info("Shutting down SQS EBS background job executor. Timeout: #{timeout}")
  @executor.shutdown
  clean_shutdown = @executor.wait_for_termination(timeout)
  @logger.info("SQS EBS background executor shutdown complete. Clean: #{clean_shutdown}")
end