async def handle_agent_job_started(self, agent_addr, message: AgentJobStarted): """Handle an AgentJobStarted message. Send the data back to the client""" self._logger.debug("Job %s %s started on agent %s", message.job_id[0], message.job_id[1], agent_addr) await ZMQUtils.send_with_addr(self._client_socket, message.job_id[0], BackendJobStarted(message.job_id[1]))
async def handle_agent_job_started(self, agent_addr, message: AgentJobStarted): """Handle an AgentJobStarted message. Send the data back to the client""" self._logger.debug("Job %s started on agent %s", message.job_id, agent_addr) if message.job_id not in self._job_running: self._logger.warning( "Agent %s said job %s was running, but it is not in the list of running jobs", agent_addr, message.job_id) await ZMQUtils.send_with_addr( self._client_socket, self._job_running[message.job_id].client_addr, BackendJobStarted(message.job_id))