Skip to content

Commit

Permalink
Merge pull request #7169 from kaltura/Mercury-13.20.0-SUP-14485
Browse files Browse the repository at this point in the history
SUP-14485:Use job createdAt instead of queued_time to decide on timeout
  • Loading branch information
MosheMaorKaltura committed May 23, 2018
2 parents a4bbb5b + f86d3cd commit 87765a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ private function addAsExistingContent(KalturaBatchJob $job, KalturaDropFolderCon
if(!$matchedEntry)
{
$e = new kTemporaryException('No matching entry found', KalturaDropFolderFileErrorCode::FILE_NO_MATCH);
if(($job->queueTime + KBatchBase::$taskConfig->params->maxTimeBeforeFail) >= time())
if(($job->createdAt + KBatchBase::$taskConfig->params->maxTimeBeforeFail) >= time())
{
$e->setResetJobExecutionAttempts(true);
}
Expand Down

0 comments on commit 87765a5

Please sign in to comment.