class JobFailure extends Job implements ShouldQueue

This job is executed on the machine running BIIGLE to store the error state of a failed novelty detection or object detection.

Traits

Queueable
Dispatchable

Properties

protected int $jobId

ID of the MAIA job.

protected string $message

Error message.

Methods

__construct(int $jobId, Exception $exception)

Create a new instance

handle()

Execute the job

updateJobState(MaiaJob $job)

Set the job to a failed state.

sendNotification(MaiaJob $job)

Send the notification about the failure to the creator of the job.

Details

at line 37
__construct(int $jobId, Exception $exception)

Create a new instance

Parameters

int $jobId
Exception $exception

at line 46
handle()

Execute the job

at line 61
protected updateJobState(MaiaJob $job)

Set the job to a failed state.

Parameters

MaiaJob $job

at line 71
protected sendNotification(MaiaJob $job)

Send the notification about the failure to the creator of the job.

Parameters

MaiaJob $job