Skip to content

Commit

Permalink
Merge branch 'develop' into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Mar 25, 2024
2 parents 0bb0196 + 7158e36 commit 7bf884f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/jobs/WarmJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
class WarmJob extends BaseBatchedJob
{
/**
* @var Queue
* Used to set the progress on the appropriate queue.
*
* @see self::setProgressHandler()
*/
private Queue $queue;

Expand All @@ -31,11 +33,10 @@ public function init(): void
}

/**
* @inheritdoc
* Warms a batch of URLs in one go.
*/
public function execute($queue): void
{
// TODO: move this into the `BaseBatchedJob::before` method in Blitz 5.
// Decrement (increase) priority so that subsequent batches are prioritised.
if ($this->itemOffset === 0) {
$this->priority--;
Expand Down

0 comments on commit 7bf884f

Please sign in to comment.