function getExclusiveAlmostDone(KalturaExclusiveLockKey $lockKey, $maxExecutionTime, $numberOfJobs, KalturaBatchJobFilter $filter = null, $jobType = null)
 {
     $kparams = array();
     $this->client->addParam($kparams, "lockKey", $lockKey->toParams());
     $this->client->addParam($kparams, "maxExecutionTime", $maxExecutionTime);
     $this->client->addParam($kparams, "numberOfJobs", $numberOfJobs);
     if ($filter !== null) {
         $this->client->addParam($kparams, "filter", $filter->toParams());
     }
     $this->client->addParam($kparams, "jobType", $jobType);
     $this->client->queueServiceActionCall("metadata_metadatabatch", "getExclusiveAlmostDone", $kparams);
     if ($this->client->isMultiRequest()) {
         return null;
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "array");
     return $resultObject;
 }