-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add event for when supervisor process died
- Loading branch information
frankprins
committed
Jun 13, 2023
1 parent
48e842d
commit a67025e
Showing
2 changed files
with
41 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Laravel\Horizon\Events; | ||
|
||
use Laravel\Horizon\SupervisorProcess; | ||
|
||
class SupervisorProcessDied | ||
{ | ||
/** | ||
* The supervisor process. | ||
* | ||
* @var \Laravel\Horizon\SupervisorProcess | ||
*/ | ||
public $supervisorProcess; | ||
|
||
/** | ||
* The code with which the process exited. | ||
* | ||
* @var int|null | ||
*/ | ||
public $exitCode; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param \Laravel\Horizon\SupervisorProcess $supervisorProcess | ||
* @param int|null $exitCode | ||
* @return void | ||
*/ | ||
public function __construct(SupervisorProcess $supervisorProcess, ?int $exitCode) | ||
{ | ||
$this->supervisorProcess = $supervisorProcess; | ||
$this->exitCode = $exitCode; | ||
} | ||
} |
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