def METHOD_NAME(self):
    import time
    from dongtai_common.models.agent import IastAgent
    from dongtai_engine.tasks import is_alive
    timestamp = int(time.time())
    stopped_agents = IastAgent.objects.values("id").filter(is_running=0)
    is_running_agents = []
    for agent in stopped_agents:
        agent_id = agent["id"]
        if is_alive(agent_id=agent_id, timestamp=timestamp):
            is_running_agents.append(agent_id)
        else:
            continue
    if is_running_agents:
        IastAgent.objects.filter(id__in=is_running_agents).update(is_running=1, is_core_running=1)