src/rekognition/index-faces/handler.py [48:61]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
'''
Determine the collection partition metadata 
'''
def get_partition_count()->int:
  
  #xray_recorder.begin_segment('get_partition_count')
  try:
    parameter_name = '/riv/{}/rekognition/partition-count'.format(riv_stack_name)
    response = ssm_client.get_parameter(Name=parameter_name)
    value = response['Parameter']['Value']
    return int(value)
  except Exception as error:
    logger.error('Unable to get_partition_count() - run src/rekognition/setup.')
    raise error
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/rekognition/search-faces/handler.py [40:53]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
'''
Determine the collection partition metadata 
'''
#@xray_recorder.capture('get_partition_count')
def get_partition_count()->int:
  try:
    parameter_name = '/riv/{}/rekognition/partition-count'.format(riv_stack_name)
    
    response = ssm_client.get_parameter(Name=parameter_name)
    value = response['Parameter']['Value']
    return int(value)
  except Exception as error:
    logger.error('Unable to get_partition_count() - run src/rekognition/setup.')
    raise error
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



