original_docstring: 
          Notify all running jobs about a possible change in active status.
          
docstring: Notify all running jobs about a possible change in active status.
docstring_tokens: Notify all running jobs about a possible change in active status .
code: async def notify_actor_state(self, msg=None):
          """
          Notify all running jobs about a possible change in active status.
          """
          ac = len(self.node_history)
          if ac == 0 or msg is None:
              ac = BrokenState
          elif self.name in self.node_history and ac == 1:
              ac = DetachedState
          elif self._act is not None and ac >= self.n_nodes:  # TODO configureable
              ac = CompleteState
          else:
              ac = PartialState
  
          logger.debug("State %r %r", ac, msg)
  
          ac = ac(msg)
          for n in self.all_children:
              await n.send_event(ac)
code_tokens: async def notify_actor_state ( self , msg = None ) : ac = len ( self . node_history ) if ac == 0 or msg is None : ac = BrokenState elif self . name in self . node_history and ac == 1 : ac = DetachedState elif self . _act is not None and ac >= self . n_nodes : ac = CompleteState else : ac = PartialState logger . debug ( "State %r %r" , ac , msg ) ac = ac ( msg ) for n in self . all_children : await n . send_event ( ac )
short_docstring: Notify all running jobs about a possible change in active status.
short_docstring_tokens: Notify all running jobs about a possible change in active status .
comment: """
          Notify all running jobs about a possible change in active status.
          """$SEP$# TODO configureable