Skip to content

Commit

Permalink
Apply max batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Mar 8, 2024
1 parent f3ac497 commit 5ca5cdf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/jobs/SendoutJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ class SendoutJob extends BaseBatchedJob implements RetryableJobInterface
*/
public ?string $title = null;

/**
* @inheritdoc
*/
public function init(): void
{
$this->batchSize = Campaign::$plugin->settings->maxBatchSize;

parent::init();
}

/**
* @inheritdoc
*/
Expand Down

0 comments on commit 5ca5cdf

Please sign in to comment.