code: def _ack_coord_handle(
          coord, coord_handle, queue_mapper, msg_tracker, timing_state,
          tile_proc_logger, stats_handler):
      
  
      # returns tuple of (handle, error), either of which can be None
  
      track_result = msg_tracker.done(coord_handle)
      queue_handle = track_result.queue_handle
      if not queue_handle:
          return None, None
  
      tile_queue = queue_mapper.get_queue(queue_handle.queue_id)
      assert tile_queue, \
          'Missing tile_queue: %s' % queue_handle.queue_id
  
      parent_tile = None
      if track_result.all_done:
          parent_tile = track_result.parent_tile
  
          try:
              tile_queue.job_done(queue_handle.handle)
          except Exception as e:
              stacktrace = format_stacktrace_one_line()
              tile_proc_logger.error_job_done(
                  'tile_queue.job_done', e, stacktrace,
                  coord, parent_tile,
              )
              return queue_handle, e
  
          if parent_tile is not None:
              # we completed a tile pyramid and should log appropriately
  
              start_time = timing_state['start']
              stop_time = convert_seconds_to_millis(time.time())
              tile_proc_logger.log_processed_pyramid(
                  parent_tile, start_time, stop_time)
              stats_handler.processed_pyramid(
                  parent_tile, start_time, stop_time)
      else:
          try:
              tile_queue.job_progress(queue_handle.handle)
          except Exception as e:
              stacktrace = format_stacktrace_one_line()
              err_details = {"queue_handle": queue_handle.handle}
              if isinstance(e, JobProgressException):
                  err_details = e.err_details
              tile_proc_logger.error_job_progress(
                  'tile_queue.job_progress', e, stacktrace,
                  coord, parent_tile, err_details,
              )
              return queue_handle, e
  
      return queue_handle, None
docs: share code for acknowledging a coordinate