Commit 4f7ab695 authored by BaiJiangJie's avatar BaiJiangJie

[Bugfix] 修复执行任务,没有保存 history 的问题

parent 87247da0
......@@ -242,6 +242,7 @@ class AdHoc(models.Model):
except AttributeError:
hid = str(uuid.uuid4())
history = AdHocRunHistory(id=hid, adhoc=self, task=self.task)
history.save()
time_start = time.time()
date_start = timezone.now()
is_success = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment