protected function getJobs() { $maxOffset = min($this->getMaxOffset(), KBatchBase::$taskConfig->getQueueSize()); $multiCentersPlugin = KalturaMultiCentersClientPlugin::get(self::$kClient); return $multiCentersPlugin->filesyncImportBatch->getExclusiveFileSyncImportJobs($this->getExclusiveLockKey(), self::$taskConfig->maximumExecutionTime, $this->getMaxJobsEachRun(), $this->getFilter(), $maxOffset); }
protected function extendFileSyncLock($fileSyncId) { try { $multiCentersPlugin = KalturaMultiCentersClientPlugin::get(self::$kClient); $multiCentersPlugin->filesyncImportBatch->extendFileSyncLock($fileSyncId); } catch (KalturaException $e) { KalturaLog::err($e); } catch (KalturaClientException $e) { KalturaLog::err($e); } }
protected function getJobs() { $multiCentersPlugin = KalturaMultiCentersClientPlugin::get($this->kClient); return $multiCentersPlugin->fileSyncImportBatch->getExclusiveFileSyncImportJobs($this->getExclusiveLockKey(), $this->taskConfig->maximumExecutionTime, $this->getMaxJobsEachRun(), $this->getFilter()); }