From 12d5b5358136fa77fc1c27e76901df8e29ff68e5 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 14 Sep 2021 11:38:08 +0200 Subject: [PATCH 1/2] Increase activity email speed in instances with more than 500 users Signed-off-by: Joas Schilling --- lib/BackgroundJob/EmailNotification.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/BackgroundJob/EmailNotification.php b/lib/BackgroundJob/EmailNotification.php index 1ad48c62e..5ae43060a 100644 --- a/lib/BackgroundJob/EmailNotification.php +++ b/lib/BackgroundJob/EmailNotification.php @@ -39,14 +39,10 @@ class EmailNotification extends TimedJob { /** @var bool */ protected $isCLI; - /** - * @param MailQueueHandler $mailQueueHandler - * @param bool $isCLI - */ public function __construct(MailQueueHandler $mailQueueHandler, - $isCLI) { - // Run all 15 Minutes - $this->setInterval(15 * 60); + bool $isCLI) { + // Run everytime cron is executed, so the batching doesn't delay too much + $this->setInterval(1); $this->queueHandler = $mailQueueHandler; $this->isCLI = $isCLI; From 2f30aee42b4a4b9d94a06b50dcd5ae9aa021f6ff Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 14 Sep 2021 13:10:10 +0200 Subject: [PATCH 2/2] Fix CI Signed-off-by: Joas Schilling --- .github/workflows/phpunit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 18e41c36b..ba6f09e71 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -83,7 +83,7 @@ jobs: services: mysql: - image: mariadb + image: mariadb:10.5 ports: - 4444:3306/tcp env: