Forum

deliveryExecution

hello when i configuring deliveryExecution to redis i get errtor 500
i did it as i read in documentation https://hub.taotesting.com/articles/administrator-guide/data-abstractions

please help me

Comments

  • edited January 30

    Quick and ugly hack, you can fix it by editing :

    taoDelivery/model/execution/implementation/KeyValueService.php

        /**
         * @return common_persistence_KeyValuePersistence
         */
        protected function getPersistence()
        {
            if (is_null($this->persistence)) {
                $persistenceOption = $this->getOption(self::OPTION_PERSISTENCE);
                $persistenceOption = 'keyValueResult'; //@todo fix this: temporary hack, otherwise we will get following error : https://forum.taotesting.com/discussion/789/deliveryexecution    
                $this->persistence = (is_object($persistenceOption))
                    ? $persistenceOption
                    : $this->getServiceLocator()->get(\common_persistence_Manager::SERVICE_ID)->getPersistenceById($persistenceOption);
            }
            return $this->persistence;
        }
    

    And add new config :

    config/generis/persistences.conf.php

    ....
            'keyValueResult' => array(
                'driver' => 'phpredis',
                'host' => '127.0.0.1',
                'port' => 6379
            ),
    ....
    
  • If your redis persistence is called keyValueResult, then you need to change your config/taoDelivery/execution_service.conf.php to

    return new oat\taoDelivery\model\execution\implementation\KeyValueService([
        'persistence' => 'keyValueResult'
    ]);
    

    The double array on the original page is incorrect

Sign In or Register to comment.

We use cookies on our website to support technical features that enhance your user experience. Cookie Policy Privacy Policy

×