mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-29 08:17:17 +00:00
[Bugfix] 修复执行任务,没有保存 history 的问题
This commit is contained in:
parent
87247da0ec
commit
4f7ab69508
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user