mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-22 16:31:33 +00:00
[Update] 修改 task 运行机制
This commit is contained in:
@@ -28,6 +28,7 @@ class AdHocResultCallback(CallbackModule):
|
||||
host = res._host.get_name()
|
||||
task_name = res.task_name
|
||||
task_result = res._result
|
||||
print(task_result)
|
||||
|
||||
if self.results_raw[t].get(host):
|
||||
self.results_raw[t][host][task_name] = task_result
|
||||
@@ -50,6 +51,7 @@ class AdHocResultCallback(CallbackModule):
|
||||
contacted.remove(host)
|
||||
|
||||
def v2_runner_on_failed(self, result, ignore_errors=False):
|
||||
print("#######RUN FAILED" * 19)
|
||||
self.gather_result("failed", result)
|
||||
super().v2_runner_on_failed(result, ignore_errors=ignore_errors)
|
||||
|
||||
|
Reference in New Issue
Block a user