def get_queue_name(queue_name_base, queue_name_suffix, add_random_uuid_to_suffix=True):
 if (not queue_name_base):
  raise ValueError('Queue name base cannot be empty.')
 if (not queue_name_suffix):
  return queue_name_base
 queue_suffix = queue_name_suffix
 if add_random_uuid_to_suffix:
  u_hex = uuid.uuid4().hex
  uuid_suffix = uuid.uuid4().hex[(len(u_hex) - 10):]
  queue_suffix = ('%s-%s' % (queue_name_suffix, uuid_suffix))
 queue_name = ('%s.%s' % (queue_name_base, queue_suffix))
 return queue_name

def get_queue_name ( queue_name_base , queue_name_suffix , add_random_uuid_to_suffix = True ) : if ( not queue_name_base ) : raise ValueError ( 'Queue name base cannot be empty.' ) if ( not queue_name_suffix ) : return queue_name_base queue_suffix = queue_name_suffix if add_random_uuid_to_suffix : u_hex = uuid . uuid4 ( ) . hex uuid_suffix = uuid . uuid4 ( ) . hex [ ( len ( u_hex ) - 10 ) : ] queue_suffix = ( '%s-%s' % ( queue_name_suffix , uuid_suffix ) ) queue_name = ( '%s.%s' % ( queue_name_base , queue_suffix ) ) return queue_name
get a queue name based on base name and suffix .