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

daycry / jobs / 21145580946

19 Jan 2026 04:55PM UTC coverage: 58.025% (-4.5%) from 62.567%
21145580946

push

github

daycry
Add security, performance, and health features; simplify architecture

Introduces shell command whitelisting, smart token detection, per-queue rate limiting, dead letter queue, job timeout protection, config caching, and a health monitoring command. Refactors architecture by consolidating traits, removing the CompletionStrategy pattern, and unifying retry policies under RetryPolicyFixed. Updates documentation and tests to reflect new features and architectural changes, ensuring backward compatibility and improved reliability.

143 of 340 new or added lines in 20 files covered. (42.06%)

1 existing line in 1 file now uncovered.

1193 of 2056 relevant lines covered (58.03%)

4.44 hits per line

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

33.33
/src/Libraries/ConfigCache.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * This file is part of Daycry Queues.
7
 *
8
 * (c) Daycry <daycry9@proton.me>
9
 *
10
 * For the full copyright and license information, please view
11
 * the LICENSE file that was distributed with this source code.
12
 */
13

14
namespace Daycry\Jobs\Libraries;
15

16
use Daycry\Jobs\Config\Jobs;
17

18
/**
19
 * Singleton config cache to avoid repeated config() calls.
20
 * Improves performance by caching the Jobs config in memory.
21
 */
22
class ConfigCache
23
{
24
    private static ?Jobs $instance = null;
25

26
    /**
27
     * Get cached config instance.
28
     */
29
    public static function get(): Jobs
30
    {
31
        return self::$instance ??= config('Jobs');
1✔
32
    }
33

34
    /**
35
     * Clear cached instance (useful for testing).
36
     */
37
    public static function clear(): void
38
    {
NEW
39
        self::$instance = null;
×
40
    }
41

42
    /**
43
     * Set custom config instance (useful for testing).
44
     */
45
    public static function set(Jobs $config): void
46
    {
NEW
47
        self::$instance = $config;
×
48
    }
49
}
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