-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[10.x] Allow failed jobs to be counted by "connection" and "queue" (#…
…48216) * Allow failed jobs to be counted by "connection" and "queue" * Fix and improve tests * additional tests * lint * standardise
- Loading branch information
1 parent
0ccc2d9
commit d8a7bd9
Showing
8 changed files
with
276 additions
and
34 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/Illuminate/Queue/Failed/CountableFailedJobProvider.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Illuminate\Queue\Failed; | ||
|
||
interface CountableFailedJobProvider | ||
{ | ||
/** | ||
* Count the failed jobs. | ||
* | ||
* @param string|null $connection | ||
* @param string|null $queue | ||
* @return int | ||
*/ | ||
public function count($connection = null, $queue = null); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.