code: def poll(self):
          
          if self._subprocess is not None:
              self._subprocess.poll()
  
          time.sleep(self._beaver_config.get('subprocess_poll_sleep'))
docs: Poll attached subprocess until it is available