class ProcessImageAutomaticJob extends Job implements ShouldQueue

Traits

Batchable
InteractsWithQueue
Queueable
Dispatchable

Properties

$tries
int $imageId

ID of the image to process.

int $volumeId

ID of the volume of the image. Required to release the lock if the image was deleted.

Methods

void
__construct(Image $image, float $distance, string|null $channelMode = null, int $numLaserpoints = 2, bool $batch = false)

Create a new job instance.

void
handle()

Execute the job.

void
failed(Throwable|null $exception)

Handle a job failure.

void
detect(Image $image)

Perform the laser point detection.

void
releaseLock()

Release the lock of a single image detection. The lock of a volume detection is released by the batch.

Details

at line 55
void __construct(Image $image, float $distance, string|null $channelMode = null, int $numLaserpoints = 2, bool $batch = false)

Create a new job instance.

Parameters

Image $image

The image to process. Must have the id and volume_id attributes.

float $distance

Distance between laser points im cm to use for computation.

string|null $channelMode

Channel mode override (red/green/blue/gray)

int $numLaserpoints

Number of laser points to search for.

bool $batch

Whether the job is part of a volume detection. Otherwise it releases the image lock when it's finished.

Return Value

void

at line 72
void handle()

Execute the job.

Return Value

void

at line 91
void failed(Throwable|null $exception)

Handle a job failure.

Parameters

Throwable|null $exception

Return Value

void

at line 103
protected void detect(Image $image)

Perform the laser point detection.

Parameters

Image $image

Return Value

void

at line 134
protected void releaseLock()

Release the lock of a single image detection. The lock of a volume detection is released by the batch.

Return Value

void