This commit is contained in:
ct
2025-06-08 04:39:38 +08:00
parent 862a6bb19e
commit 8d6e86ebb3
40 changed files with 838 additions and 1601 deletions

View File

@@ -2,26 +2,10 @@
namespace App\Http\Controllers;
use App\Jobs\RunVideoRenderPipelineJob;
use App\Models\Video;
class TestController extends Controller
{
public function RunVideoRenderPipelineJob()
public function index()
{
$dispatch_job = true;
$video = Video::latest()->first();
if ($video) {
if ($dispatch_job) {
RunVideoRenderPipelineJob::dispatch($video->id)->onQueue('render');
} else {
$job = new RunVideoRenderPipelineJob($video->id);
$job->handle();
}
} else {
echo 'NO VIDEO';
}
//
}
}