Fix jobModel interfering
Some checks failed
Push image to registry / build-image (push) Failing after 53s
Some checks failed
Push image to registry / build-image (push) Failing after 53s
This commit is contained in:
@ -28,14 +28,14 @@ abstract class BrowserJob implements ShouldQueue
|
||||
use SupportsChrome, ProvidesBrowser, Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
public int $jobId;
|
||||
public Job $job;
|
||||
public Job $jobModel;
|
||||
|
||||
public $timeout = 500;
|
||||
|
||||
public function __construct(int $jobId)
|
||||
{
|
||||
$this->jobId = $jobId;
|
||||
$this->job = Job::find($jobId);
|
||||
$this->jobModel = Job::find($jobId);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -219,7 +219,7 @@ abstract class BrowserJob implements ShouldQueue
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
if ($this->job->is_active) {
|
||||
if ($this->jobModel->is_active) {
|
||||
$this->execute();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user