Пример #1
0
 public function run($jobs = null)
 {
     $this->curlWrapper = new KCurlWrapper(self::$taskConfig->params);
     $retJobs = parent::run($jobs);
     $this->curlWrapper->close();
     return $retJobs;
 }
 public function run($jobs = null)
 {
     // creates a temp file path
     $this->localTempPath = self::$taskConfig->params->localTempPath;
     $this->sharedTempPath = self::$taskConfig->params->sharedTempPath;
     $res = self::createDir($this->localTempPath);
     if (!$res) {
         KalturaLog::err("Cannot continue conversion without temp local directory");
         return null;
     }
     $res = self::createDir($this->sharedTempPath);
     if (!$res) {
         KalturaLog::err("Cannot continue conversion without temp shared directory");
         return null;
     }
     return parent::run($jobs);
 }
Пример #3
0
 public function run($jobs = null)
 {
     // creates a temp file path
     $this->localTempPath = self::$taskConfig->params->localTempPath;
     $this->sharedTempPath = self::$taskConfig->params->sharedTempPath;
     $res = self::createDir($this->localTempPath);
     if (!$res) {
         KalturaLog::err("Cannot continue conversion without temp local directory");
         return null;
     }
     $res = self::createDir($this->sharedTempPath);
     if (!$res) {
         KalturaLog::err("Cannot continue conversion without temp shared directory");
         return null;
     }
     $remoteFileRoot = self::$taskConfig->getRemoteServerUrl() . self::$taskConfig->params->remoteUrlDirectory;
     $this->distributedFileManager = new KDistributedFileManager(self::$taskConfig->params->localFileRoot, $remoteFileRoot, self::$taskConfig->params->fileCacheExpire);
     return parent::run($jobs);
 }