code: def spec(self):
          '''Actual work spec.
  
          This is retrieved from the database on first use, and in some
          cases a worker can be mildly more efficient if it avoids using
          this.
  
          '''
          if self._spec_cache is None:
              self._spec_cache = self.registry.get(
                  WORK_SPECS, self.work_spec_name)
          return self._spec_cachf spec(self):
          '''Actual work spec.
  
          This is retrieved from the database on first use, and in some
          cases a worker can be mildly more efficient if it avoids using
          this.
  
          '''
          if self._spec_cache is None:
              self._spec_cache = self.registry.get(
                  WORK_SPECS, self.work_spec_name)
          return self._spec_cache
docs: Actual work spec.
  
          This is retrieved from the database on first use, and in some
          cases a worker can be mildly more efficient if it avoids using
          this.