-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add events for when supervisors are terminated (#1282)
* Add events for when supervisors are terminated * Fix styleCI issues * rename files * Update SupervisorOutOfMemory.php --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
- Loading branch information
1 parent
6ee1123
commit 48e842d
Showing
4 changed files
with
58 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,26 @@ | ||
<?php | ||
|
||
namespace Laravel\Horizon\Events; | ||
|
||
use Laravel\Horizon\MasterSupervisor; | ||
|
||
class MasterSupervisorOutOfMemory | ||
{ | ||
/** | ||
* The master supervisor instance. | ||
* | ||
* @var \Laravel\Horizon\MasterSupervisor | ||
*/ | ||
public $master; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param \Laravel\Horizon\MasterSupervisor $master | ||
* @return void | ||
*/ | ||
public function __construct(MasterSupervisor $master) | ||
{ | ||
$this->master = $master; | ||
} | ||
} |
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,26 @@ | ||
<?php | ||
|
||
namespace Laravel\Horizon\Events; | ||
|
||
use Laravel\Horizon\Supervisor; | ||
|
||
class SupervisorOutOfMemory | ||
{ | ||
/** | ||
* The supervisor instance. | ||
* | ||
* @var \Laravel\Horizon\Supervisor | ||
*/ | ||
public $supervisor; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param \Laravel\Horizon\Supervisor $supervisor | ||
* @return void | ||
*/ | ||
public function __construct(Supervisor $supervisor) | ||
{ | ||
$this->supervisor = $supervisor; | ||
} | ||
} |
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