public function purge($master)
    {
        $this->recordOrphans($master);

        $expired = $this->processes->orphanedFor(
            $master, $this->supervisors->longestActiveTimeout()
        );

        collect($expired)->each(function ($processId) use ($master) {
            $this->comment("Killing Process: {$processId}");

            exec("kill {$processId}");

            $this->processes->forgetOrphans($master, [$processId]);
        });
    }
public function purge($master)
    {
        $this->recordOrphans($master);

        $expired = $this->processes->orphanedFor(
            $master, $this->supervisors->longestActiveTimeout()
        );

        collect($expired)->each(function ($processId) use ($master) {
            $this->comment("Killing Process: {$processId}");

            exec("kill {$processId}");

            $this->processes->forgetOrphans($master, [$processId]);
        });
    }
public function purge ( $ master ) { $ this -> recordOrphans ( $ master ) ; $ expired = $ this -> processes -> orphanedFor ( $ master , $ this -> supervisors -> longestActiveTimeout ( ) ) ; collect ( $ expired ) -> each ( function ( $ processId ) use ( $ master ) { $ this -> comment ( "Killing Process: {$processId}" ) ; exec ( "kill {$processId}" ) ; $ this -> processes -> forgetOrphans ( $ master , [ $ processId ] ) ; } ) ; }
Purge any orphan processes.

@param  string  $master
@return void
Purge any orphan processes .