3434 cast ,
3535)
3636
37- import kiwipy
38-
39- from plumpy .broadcast_filter import BroadcastFilter
37+ from plumpy .broadcast_filter import BroadcastFilter # type: ignore
4038from plumpy .coordinator import Coordinator
4139
4240try :
@@ -944,19 +942,16 @@ def _fire_event(self, evt: Callable[..., Any], *args: Any, **kwargs: Any) -> Non
944942 # region Communication
945943
946944 def message_receive (self , msg : MessageType ) -> Any :
947- """
948- Coroutine called when the process receives a message from the communicator
945+ """Coroutine called when the process receives a message from the communicator
949946
950- :param _comm: the communicator that sent the message
951947 :param msg: the message
952948 :return: the outcome of processing the message, the return value will be sent back as a response to the sender
953949 """
954- # self.logger.debug(
955- # "Process<%s>: received RPC message with communicator '%s': %r",
956- # self.pid,
957- # _comm,
958- # msg,
959- # )
950+ self .logger .debug (
951+ 'Process<%s>: received RPC message: %r' ,
952+ self .pid ,
953+ msg ,
954+ )
960955
961956 intent = msg [message .INTENT_KEY ]
962957
@@ -977,19 +972,17 @@ def message_receive(self, msg: MessageType) -> Any:
977972 def broadcast_receive (
978973 self , msg : MessageType , sender : Any , subject : Any , correlation_id : Any
979974 ) -> Optional [concurrent .futures .Future ]:
980- """
981- Coroutine called when the process receives a message from the communicator
975+ """Coroutine called when the process receives a message from the communicator
982976
983977 :param msg: the message
984978 """
979+ self .logger .debug (
980+ "Process<%s>: received broadcast message '%s': %r" ,
981+ self .pid ,
982+ subject ,
983+ msg ,
984+ )
985985
986- # self.logger.debug(
987- # "Process<%s>: received broadcast message '%s' with communicator '%s': %r",
988- # self.pid,
989- # subject,
990- # _comm,
991- # msg,
992- # )
993986 # If we get a message we recognise then action it, otherwise ignore
994987 fn = None
995988 if subject == message .Intent .PLAY :
0 commit comments