Skip to content

Commit

Permalink
Merge pull request #1054 from biigle/patch-1
Browse files Browse the repository at this point in the history
Add deleteWhenMissingModels to job
  • Loading branch information
mzur authored Jan 20, 2025
2 parents c3fc384 + 7d3a0b9 commit 82087b9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/Jobs/CloneImageThumbnails.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,18 @@ class CloneImageThumbnails extends Job implements ShouldQueue

/**
* Cloned image of cloned volume
*
* @var Image
*/
public $image;

/**
* Ignore this job if the image does not exist any more.
*
* @var bool
*/
protected $deleteWhenMissingModels = true;

public function __construct(Image $img, String $prefix)
{
$this->image = $img;
Expand Down

0 comments on commit 82087b9

Please sign in to comment.