labib47
232
2
Laravel

Laravel Job Chaining Pass Variable From Another Job To Another Job

Posted 6 months ago by labib47

Currently im doing a queue to process video to text using api . So the process will take around 10 minutes . So after the process success , i will get data from the api which is json that store text of speech . I want to pass the data to another job for proccessing its tone analyzer based on the text .Here is my job chaining

   UploadVideo::dispatch('$myvariableforapi')->chain([
        new MakeText('$datafromUploadVideoJobs')
    ]);

Here is my job for upload video for process with the api .

Please sign in or create an account to participate in this conversation.