Skip to content

Commit

Permalink
Merge pull request #1057 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 24, 2025
2 parents 3d9979f + 1cf6452 commit 0965e33
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/Jobs/CloneVideoThumbnails.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,18 @@ class CloneVideoThumbnails extends Job implements ShouldQueue

/**
* Cloned video of cloned volume
*
* @var Video
*/
public $video;

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

public function __construct(Video $video, String $prefix)
{
$this->video = $video;
Expand Down

0 comments on commit 0965e33

Please sign in to comment.