Skip to content

Commit

Permalink
Merge pull request #9487 from kaltura/Propus-16.4.0-PLAT-10897
Browse files Browse the repository at this point in the history
PLAT-10897: make job's urgency visible in batch
  • Loading branch information
avichainoach committed Jun 9, 2020
2 parents 7c66304 + 924e4ac commit bbd8521
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion api_v3/lib/types/batch/KalturaBatchJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,16 @@ public function fromLockObject(BatchJob $dbBatchJob, BatchJobLock $dbBatchJobLoc
$this->schedulerId = $dbBatchJobLock->getSchedulerId();
$this->workerId = $dbBatchJobLock->getWorkerId();
}


protected function doFromObject($srcObj, KalturaDetachedResponseProfile $responseProfile = null)
{
$lockInfo = $srcObj->getLockInfo();
if($lockInfo)
{
$this->urgency = $lockInfo->getUrgency();
}
}

public function fromBatchJob($dbBatchJob, BatchJobLock $dbBatchJobLock = null)
{
parent::fromObject($dbBatchJob);
Expand Down

0 comments on commit bbd8521

Please sign in to comment.