fix: 修复执行任务中心报错的问题

pull/10721/head
Bai 1 year ago committed by Jiangjie.Bai
parent a3d32c901d
commit 954f86f8a9

@ -64,7 +64,13 @@ def job_execution_task_activity_callback(self, execution_id, *args, **kwargs):
activity_callback=job_execution_task_activity_callback activity_callback=job_execution_task_activity_callback
) )
def run_ops_job_execution(execution_id, **kwargs): def run_ops_job_execution(execution_id, **kwargs):
with tmp_to_root_org():
execution = get_object_or_none(JobExecution, id=execution_id) execution = get_object_or_none(JobExecution, id=execution_id)
if not execution:
logger.error("Did not get the execution: {}".format(execution_id))
return
try: try:
with tmp_to_org(execution.org): with tmp_to_org(execution.org):
execution.start() execution.start()

Loading…
Cancel
Save