code: def prepare_worker_options(self):
          
          worker_options = dict()
          for option_name in (self.options.worker_class.parameters):
              option = getattr(self.options, option_name)
              if option is not None:
                  worker_options[option_name] = option
          return worker_options
docs: Prepare (and return as a dict) all options to be passed to the worker