private function resolveEventResponse($response)
    {
        if (is_string($response)) {
            $response = new ExecTask($response);
        }

        if ($response instanceof TaskReposity && !$response instanceof ClosureTask) {
            EventReposity::addBasic($response);
        } else {
            throw new CronInstanceException(
                sprintf(
                    'Event Response must be an instance of %s and cant be an instance of %s',
                    TaskReposity::class,
                    ClosureTask::class
                )
            );
        }
    }