In your Job dispatcher, call $job->getJobStatusId() to get $jobStatusId:
<?php
$job = new TrackableJob([]);
$this->dispatch($job);
$jobStatusId = $job->getJobStatusId();
How can I dispatch the job to another queue instead of "default"?
I already tried:
$this->dispatch($job)->onQueue("custom_queue");
The laravel log contains these messages:
[2019-02-12 23:58:42] dev.ERROR: Call to a member function onQueue() on integer {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0)
: Call to a member function onQueue() on integer at /home/ansible/apps/laravel/single-project/laravel-ffmpeg-cluster/ffmpeg-cluster/app/Http/Controllers/TranscodeControll
er.php:125)
[stacktrace]
This is written in the Readme.md:
How can I dispatch the job to another queue instead of "default"?
I already tried:
$this->dispatch($job)->onQueue("custom_queue");
The laravel log contains these messages:
Thanks in advance.