fix jobModel again
All checks were successful
Push image to registry / build-image (push) Successful in 4m31s

This commit is contained in:
2025-02-22 08:53:54 +01:00
parent 5b939f7d34
commit c7ad5810a7

View File

@ -28,14 +28,12 @@ abstract class BrowserJob implements ShouldQueue
use SupportsChrome, ProvidesBrowser, Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public int $jobId;
public Job $jobModel;
public $timeout = 500;
public function __construct(int $jobId)
{
$this->jobId = $jobId;
$this->jobModel = Job::find($jobId);
}
/**
@ -219,7 +217,7 @@ abstract class BrowserJob implements ShouldQueue
*/
public function handle(): void
{
if ($this->jobModel->is_active) {
if (Job::find($this->jobId)->is_active) {
$this->execute();
}
}