• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LibreSign / libresign / 20907588007

12 Jan 2026 03:57AM UTC coverage: 43.867%. First build
20907588007

Pull #6436

github

web-flow
Merge 9c5490a63 into 8fe916f99
Pull Request #6436: feat: async parallel signing

242 of 775 new or added lines in 26 files covered. (31.23%)

6920 of 15775 relevant lines covered (43.87%)

4.86 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/BackgroundJob/SignFileJob.php
1
<?php
2

3
declare(strict_types=1);
4
/**
5
 * SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
6
 * SPDX-License-Identifier: AGPL-3.0-or-later
7
 */
8

9
namespace OCA\Libresign\BackgroundJob;
10

11
use OCA\Libresign\Service\SignJobCoordinator;
12
use OCP\AppFramework\Utility\ITimeFactory;
13
use OCP\BackgroundJob\QueuedJob;
14

15
/**
16
 * Queued job to process file signing asynchronously.
17
 */
18
class SignFileJob extends QueuedJob {
19
        public function __construct(
20
                ITimeFactory $time,
21
                private SignJobCoordinator $coordinator,
22
        ) {
NEW
23
                parent::__construct($time);
×
24
        }
25

26
        /**
27
         * @param array|null $argument
28
         */
29
        #[\Override]
30
        public function run($argument): void {
31
                // Handle null arguments from Nextcloud background job system
NEW
32
                $argument = is_array($argument) ? $argument : [];
×
NEW
33
                $this->coordinator->runSignFile($argument);
×
34
        }
35
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc