Skip to content

Commit

Permalink
Merge pull request #839 from styxit/event-masterSupervisorDeploy
Browse files Browse the repository at this point in the history
Trigger MasterSupervisorDeployed event
  • Loading branch information
taylorotwell authored May 18, 2020
2 parents 490f9bb + ef78c70 commit 0fdc218
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ProvisioningPlan.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Laravel\Horizon\Contracts\HorizonCommandQueue;
use Laravel\Horizon\Events\MasterSupervisorDeployed;
use Laravel\Horizon\MasterSupervisorCommands\AddSupervisor;

class ProvisioningPlan
Expand Down Expand Up @@ -96,6 +97,8 @@ public function deploy($environment)
foreach ($supervisors as $supervisor => $options) {
$this->add($options);
}

event(new MasterSupervisorDeployed($this->master));
}

/**
Expand Down

0 comments on commit 0fdc218

Please sign in to comment.