Skip to content

Commit

Permalink
fix: 重い動画変換のタイムアウト対応
Browse files Browse the repository at this point in the history
  • Loading branch information
akagane99 committed Jan 9, 2019
1 parent f7483b8 commit 0337163
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Model/Behavior/VideoBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ public function isFfmpegEnable(Model $model) {
* @throws InternalErrorException
*/
public function saveConvertVideo(Model $model, $video) {
set_time_limit(3600);

// 元動画 取得
$noConvert = $model->UploadFile->getFile('videos', $model->id, Video::VIDEO_FILE_FIELD);

Expand Down Expand Up @@ -298,4 +300,4 @@ private function __generateThumbnail(Model $model, $video, $convert) {
$model->attachFile($video, Video::THUMBNAIL_FIELD, $convertedFilePath);
}
}
}
}

0 comments on commit 0337163

Please sign in to comment.