def METHOD_NAME(self, target, loader=pluginloader):
    self.logger.info('Loading job {}'.format(self))
    if self.id not in self._workload_cache:
        self.workload = loader.get_workload(self.spec.workload_name,
                                            target,
                                            **self.spec.workload_parameters)
        self.workload.init_resources(self.context)
        self.workload.validate()
        self._workload_cache[self.id] = self.workload
    else:
        self.workload = self._workload_cache[self.id]