Пример #1
0
    def _send_msg(self, message: bin, location: BaseWorker) -> bin:
        """send message to worker location"""
        if self.message_pending_time > 0:
            if self.verbose:
                print(f"pending time of {self.message_pending_time} seconds to send message...")
            sleep(self.message_pending_time)

        return location._recv_msg(message)
Пример #2
0
 def _send_msg(self, message: bin, location: BaseWorker) -> bin:
     return location._recv_msg(message)
Пример #3
0
    def _send_msg(self, message: bin, location: BaseWorker) -> bin:
        """send message to worker location"""

        return location._recv_msg(message)
Пример #4
0
 def _send_msg(self, message: bin, location: BaseWorker) -> bin:
     print("THIS IS WHERE I AM SENDING THE THING: ")
     print(location)
     print("WHEREAS I AM:")
     print(self)
     return location._recv_msg(message)