docstr: Request jobs from the dispatcher, in a perpetual loop until :meth:`~gensim.models.lsi_worker.Worker.getstate`
  is called.
  
  Raises
  ------
  RuntimeError
      If `self.model` is None (i.e. worker not initialized).
docstr_tok: ["Request","jobs","from","the","dispatcher",",","in","a","perpetual","loop","until",":","meth",":","`","~gensim.models.lsi_worker.Worker.getstate","`","is","called",".","Raises","--","--","--","RuntimeError","If","`","self.model","`","is","None","(","i.e",".","worker","not","initialized",")","."]
code: def requestjob(self):
      """Request jobs from the dispatcher, in a perpetual loop until :meth:`~gensim.models.lsi_worker.Worker.getstate`
      is called.
  
      Raises
      ------
      RuntimeError
          If `self.model` is None (i.e. worker not initialized).
  
      """
      if self.model is None:
          raise RuntimeError(
              "worker must be initialized before receiving jobs"
          )
  
      job = None
      while job is None and not self.finished:
          try:
              job = self.dispatcher.getjob(self.myid)
          except Queue.Empty:
              # no new job: try again, unless we're finished with all work
              continue
      if job is not None:
          logger.info(
              "worker #%s received job #%i", self.myid, self.jobsdone
          )
          self.processjob(job)
          self.dispatcher.jobdone(self.myid)
      else:
          logger.info("worker #%i stopping asking for jobs", self.myid)
  
file_path: gensim/gensim/models/lsi_worker.py
imports: import os
  import sys
  import logging
  import argparse
  import threading
  import tempfile
  import queue
  import Pyro4
  from gensim.models import lsimodel
  from gensim import utils
label_desc: Use image node_id 3 for calling the Worker obj's underlying member method code with example usage: obj.requestjob() without return types