parameters: (self)
docstring: As agents start up, they will dump their configuration into the metadata_queue.
          Read from it to learn about all the bots intending to use this scratch manager.
docstring_summary: As agents start up, they will dump their configuration into the metadata_queue.
          Read from it to learn about all the bots intending to use this scratch manager.
docstring_tokens: As agents start up they will dump their configuration into the metadata_queue . Read from it to learn about all the bots intending to use this scratch manager .
function: def try_receive_agent_metadata(self):
          """
          As agents start up, they will dump their configuration into the metadata_queue.
          Read from it to learn about all the bots intending to use this scratch manager.
          """
          while True:  # will exit on queue.Empty
              try:
                  single_agent_metadata: AgentMetadata = self.metadata_queue.get(timeout=0.1)
                  self.running_indices.add(single_agent_metadata.index)
                  self.metadata_map[single_agent_metadata.index] = single_agent_metadata
              except queue.Empty:
                  return
              except Exception as ex:
                  self.logger.error(ex)
function_tokens: def try_receive_agent_metadata ( self ) : while True : # will exit on queue.Empty try : single_agent_metadata : AgentMetadata = self . metadata_queue . get ( timeout = 0.1 ) self . running_indices . add ( single_agent_metadata . index ) self . metadata_map [ single_agent_metadata . index ] = single_agent_metadata except queue . Empty : return except Exception as ex : self . logger . error ( ex )