forked from laravel/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[9.x] Improves
queue:work
command (laravel#43252)
* Fixes `queue:work` on failures * Checks if null first * Ensures the last output is printed * Ensures latest output is printed on `queue:listen` * Improves feedback when job released * Apply fixes from StyleCI * Removes unused property * Refactor * Renames event Co-authored-by: StyleCI Bot <[email protected]>
- Loading branch information
1 parent
b15dc2a
commit d425952
Showing
3 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Illuminate\Queue\Events; | ||
|
||
class JobReleasedAfterException | ||
{ | ||
/** | ||
* The connection name. | ||
* | ||
* @var string | ||
*/ | ||
public $connectionName; | ||
|
||
/** | ||
* The job instance. | ||
* | ||
* @var \Illuminate\Contracts\Queue\Job | ||
*/ | ||
public $job; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param string $connectionName | ||
* @param \Illuminate\Contracts\Queue\Job $job | ||
* @return void | ||
*/ | ||
public function __construct($connectionName, $job) | ||
{ | ||
$this->job = $job; | ||
$this->connectionName = $connectionName; | ||
} | ||
} |
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