class ObjectDetectionFailure extends JobFailure

Traits

Queueable
Dispatchable

Properties

protected int $jobId

ID of the MAIA job.

from  JobFailure
protected string $message

Error message.

from  JobFailure

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

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

Create a new instance

Parameters

int $jobId
Exception $exception

in JobFailure at line 46
handle()

Execute the job

at line 14
protected updateJobState(MaiaJob $job)

Set the job to a failed state.

Parameters

MaiaJob $job

at line 22
protected sendNotification(MaiaJob $job)

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

Parameters

MaiaJob $job