Skip to content

Commit ebdeca6

Browse files
authoredSep 16, 2021
Update StartConvert.php
1 parent 8a4bd94 commit ebdeca6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎app/Jobs/StartConvert.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Illuminate\Foundation\Bus\Dispatchable;
88
use Illuminate\Queue\InteractsWithQueue;
99
use Illuminate\Queue\SerializesModels;
10-
use Symfony\Component\Process\Process;
10+
use Illuminate\Support\Facades\Artisan;
1111

1212
class StartConvert implements ShouldQueue
1313
{
@@ -32,8 +32,6 @@ public function __construct($id)
3232
*/
3333
public function handle()
3434
{
35-
$process = new Process(['php', 'artisan', 'convert:hls', $this->id], base_path());
36-
$process->setTimeout(7200);
37-
$process->start();
35+
Artisan::call('convert:hls', ['id' => $this->id]);
3836
}
3937
}

0 commit comments

Comments
 (0)
Please sign in to comment.