def METHOD_NAME(self):
    self.agent = IastAgent.objects.filter(pk=self.agent_id).first()
    assert self.agent is not None
    assert self.agent.filepathsimhash is not None
    assert self.agent.language is not None
    assert self.agent.servicetype is not None
    assert self.agent.server is not None
    assert self.agent.server.path is not None
    assert self.agent.server.hostname is not None
    project_agents = (
        IastAgent.objects.values_list("id", flat=True)
        .filter(bind_project_id=self.agent.bind_project_id, language=self.agent.language)
        .union(
            addtional_agenti_ids_query_filepath_simhash(self.agent.filepathsimhash, language=self.agent.language),
            addtional_agent_ids_query_deployway_and_path(
                self.agent.servicetype,
                self.agent.server.path,
                self.agent.server.hostname,
                language=self.agent.language,
            ),
        )
    )
    IastReplayQueue.objects.values(
        "id",
        "relation_id",
        "uri",
        "method",
        "scheme",
        "header",
        "params",
        "body",
        "replay_type",
    ).filter(agent_id__in=project_agents, state__in=[const.WAITING, const.SOLVING])[:200]