public function monitoring()
    {
        return collect(app(SupervisorRepository::class)->all())
            ->pluck('pid')
            ->pipe(function ($processes) {
                $processes->each(function ($process) use (&$processes) {
                    $processes = $processes->merge($this->exec->run("pgrep -P {$process}"));
                });

                return $processes;
            })
            ->merge(
                Arr::pluck(app(MasterSupervisorRepository::class)->all(), 'pid')
            )->all();
    }
public function monitoring()
    {
        return collect(app(SupervisorRepository::class)->all())
            ->pluck('pid')
            ->pipe(function ($processes) {
                $processes->each(function ($process) use (&$processes) {
                    $processes = $processes->merge($this->exec->run("pgrep -P {$process}"));
                });

                return $processes;
            })
            ->merge(
                Arr::pluck(app(MasterSupervisorRepository::class)->all(), 'pid')
            )->all();
    }
public function monitoring ( ) { return collect ( app ( SupervisorRepository :: class ) -> all ( ) ) -> pluck ( 'pid' ) -> pipe ( function ( $ processes ) { $ processes -> each ( function ( $ process ) use ( & $ processes ) { $ processes = $ processes -> merge ( $ this -> exec -> run ( "pgrep -P {$process}" ) ) ; } ) ; return $ processes ; } ) -> merge ( Arr :: pluck ( app ( MasterSupervisorRepository :: class ) -> all ( ) , 'pid' ) ) -> all ( ) ; }
Get all of the process IDs Horizon is actively monitoring.

@return array
Get all of the process IDs Horizon is actively monitoring .