8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 363386c commit 4b95069Copy full SHA for 4b95069
src/SupervisorProcess.php
@@ -4,6 +4,7 @@
4
5
use Closure;
6
use Laravel\Horizon\Contracts\HorizonCommandQueue;
7
+use Laravel\Horizon\Contracts\SupervisorRepository;
8
use Laravel\Horizon\MasterSupervisorCommands\AddSupervisor;
9
use Laravel\Horizon\SupervisorCommands\Terminate;
10
@@ -112,6 +113,11 @@ public function monitor()
112
113
*/
114
protected function reprovision()
115
{
116
+ if (isset($this->name)) {
117
+ // When restarting, the Supervisor checks if it is already running based on this key
118
+ app(SupervisorRepository::class)->forget($this->name);
119
+ }
120
+
121
app(HorizonCommandQueue::class)->push(
122
MasterSupervisor::commandQueue(),
123
AddSupervisor::class,
0 commit comments