* [perf story #69159] Call afterStart method for restart.

This commit is contained in:
wangyidong
2024-11-06 17:04:02 +08:00
committed by 孙广明
parent 9d2c296d32
commit 83cf2e2838
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -724,9 +724,8 @@ class task extends control
$changes = $this->task->start($task, $taskData);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
$action = $this->post->left == 0 ? 'Finished' : 'Restarted';
$actionID = $this->loadModel('action')->create('task', $taskID, $action, $this->post->comment);
if(!empty($changes)) $this->action->logHistory($actionID, $changes);
$result = $this->task->afterStart($task, $changes, (float)$this->post->left);
if(is_array($result)) $this->send($result);
$this->executeHooks($taskID);
$response = $this->taskZen->responseAfterChangeStatus($task, $from);