Fix jobModel interfering
Some checks failed
Push image to registry / build-image (push) Failing after 53s

This commit is contained in:
2025-02-22 08:46:47 +01:00
parent 540c41357e
commit 5b939f7d34

View File

@ -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();
}
}