mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix error thrown on task execution
This commit is contained in:
parent
bb2c1de418
commit
316d0aa17a
@ -444,8 +444,10 @@ class TasksManager:
|
|||||||
def schedule_watcher(self, event):
|
def schedule_watcher(self, event):
|
||||||
if not event.exception:
|
if not event.exception:
|
||||||
if str(event.job_id).isnumeric():
|
if str(event.job_id).isnumeric():
|
||||||
task = helpers_management.get_scheduled_task_model(int(event.job_id))
|
task = self.controller.management.get_scheduled_task_model(
|
||||||
helpers_management.add_to_audit_log_raw(
|
int(event.job_id)
|
||||||
|
)
|
||||||
|
self.controller.management.add_to_audit_log_raw(
|
||||||
"system",
|
"system",
|
||||||
helper_users.get_user_id_by_name("system"),
|
helper_users.get_user_id_by_name("system"),
|
||||||
task.server_id,
|
task.server_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user