class ImportVolumeMetadata extends Job implements ShouldQueue

Traits

SerializesModels
InteractsWithQueue
Queueable
Dispatchable

Properties

static int $insertChunkSize

The number of annotation (label) rows to insert in one chunk.

protected bool $deleteWhenMissingModels

Ignore this job if the pending volume does not exist any more.

int $tries

The number of times the job may be attempted.

Methods

__construct(PendingVolume $pv)

Create a new job instance.

void
handle()

No description

void
insertAnnotations(FileMetadata $meta, VolumeFile $file, array $userMap, array $labelMap)

Insert metadata annotations of a file into the database.

void
insertAnnotationChunk(VolumeFile $file, array $annotations, array $annotationLabels)

No description

void
insertFileLabels(FileMetadata $meta, VolumeFile $file, array $userMap, array $labelMap)

Insert metadata file labels of a file into the database.

Details

at line 47
__construct(PendingVolume $pv)

Create a new job instance.

Parameters

PendingVolume $pv

at line 52
void handle()

No description

Return Value

void

at line 93
protected void insertAnnotations(FileMetadata $meta, VolumeFile $file, array $userMap, array $labelMap)

Insert metadata annotations of a file into the database.

Parameters

FileMetadata $meta
VolumeFile $file
array $userMap
array $labelMap

Return Value

void

at line 141
protected void insertAnnotationChunk(VolumeFile $file, array $annotations, array $annotationLabels)

No description

Parameters

VolumeFile $file
array $annotations
array $annotationLabels

Return Value

void

at line 180
protected void insertFileLabels(FileMetadata $meta, VolumeFile $file, array $userMap, array $labelMap)

Insert metadata file labels of a file into the database.

Parameters

FileMetadata $meta
VolumeFile $file
array $userMap
array $labelMap

Return Value

void