private function afterTask(
        string $logid,
        int $spanid,
        string $name,
        string $method,
        string $type,
        string $taskClass
    ) {
        // Release system resources.
        App::trigger(AppEvent::RESOURCE_RELEASE);

        // Trigger after task event.
        $event = new AfterTaskEvent(TaskEvent::AFTER_TASK, $logid, $spanid, $name, $method, $type, $taskClass);
        App::trigger($event);
    }