From 5ca5cdf9b9eb634995648dcdf246bc0f6f75803c Mon Sep 17 00:00:00 2001 From: bencroker Date: Fri, 8 Mar 2024 08:57:48 -0600 Subject: [PATCH] Apply max batch size --- src/jobs/SendoutJob.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/jobs/SendoutJob.php b/src/jobs/SendoutJob.php index b76aa21f..773117f4 100644 --- a/src/jobs/SendoutJob.php +++ b/src/jobs/SendoutJob.php @@ -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 */