public function popRequest(TaskEvent $event)
    {
        $request = $this->requestStack->getCurrentRequest();
        if (!$request || $request->attributes->get('_task_id') !== $event->getTask()->getUuid()) {
            // current request was not created for current task

            return;
        }

        $this->requestStack->pop();
    }