fix: 一些任务查找不到id和执行者

pull/13449/head
wangruidong 5 months ago committed by w940853815
parent f42113afb9
commit 44f29e166c

@ -215,7 +215,8 @@ class Job(JMSOrgBaseModel, PeriodTaskModelMixin):
return "{}:{}:{}".format(self.org.name, self.creator.name, self.playbook.name)
def create_execution(self):
return self.executions.create(job_version=self.version, material=self.material, job_type=Types[self.type].value)
return self.executions.create(job_version=self.version, material=self.material, job_type=Types[self.type].value,
creator=self.creator)
class Meta:
verbose_name = _("Job")

Loading…
Cancel
Save