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

umbrellio / laravel-heavy-jobs / 13572262153

27 Feb 2025 05:26PM UTC coverage: 75.956%. First build
13572262153

Pull #15

github

evgeny.iva
fix
Pull Request #15: Bump Laravel version to 12

0 of 1 new or added line in 1 file covered. (0.0%)

139 of 183 relevant lines covered (75.96%)

32.69 hits per line

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

69.23
/src/Decorators/FailedJobProviderDecorator.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Umbrellio\LaravelHeavyJobs\Decorators;
6

7
use Illuminate\Queue\Failed\FailedJobProviderInterface;
8
use Illuminate\Support\Arr;
9
use Umbrellio\LaravelHeavyJobs\Facades\HeavyJobsStore;
10

11
final class FailedJobProviderDecorator implements FailedJobProviderInterface
12
{
13
    private $failedJobProvider;
14

15
    public function __construct(FailedJobProviderInterface $failedJobProvider)
16
    {
17
        $this->failedJobProvider = $failedJobProvider;
12✔
18
    }
19

20
    public function __call($name, $arguments)
21
    {
22
        return $this->failedJobProvider->{$name}(...$arguments);
×
23
    }
24

25
    public function log($connection, $queue, $payload, $exception)
26
    {
27
        return $this->failedJobProvider->log($connection, $queue, $payload, $exception);
12✔
28
    }
29

30
    public function all()
31
    {
32
        return $this->failedJobProvider->all();
×
33
    }
34

35
    public function find($id)
36
    {
37
        return $this->failedJobProvider->find($id);
×
38
    }
39

40
    public function forget($id)
41
    {
42
        if ($record = $this->failedJobProvider->find($id)) {
6✔
43
            $heavyPayloadId = Arr::get(json_decode($record->payload, true), 'heavy-payload-id');
6✔
44
            if ($heavyPayloadId) {
6✔
45
                HeavyJobsStore::removeFailed($heavyPayloadId);
6✔
46
            }
47
        }
48

49
        return $this->failedJobProvider->forget($id);
6✔
50
    }
51

52
    public function flush($hours = null): void
53
    {
54
        HeavyJobsStore::flushFailed();
6✔
55

56
        $this->failedJobProvider->flush($hours);
6✔
57
    }
58

59
    public function ids($queue = null)
60
    {
NEW
61
        $this->failedJobProvider->ids($queue);
×
62
    }
63
}
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