Commit c176ecf4 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

UP : Ajout d'un test sur la présence du oscarworker

parent 3417254b
Loading
Loading
Loading
Loading

doc/problems.md

0 → 100644
+0 −0

Empty file added.

+14 −0
Original line number Diff line number Diff line
@@ -379,7 +379,21 @@ class OscarCheckConfigCommand extends OscarCommandAbstract
            $io->warning(sprintf(" ~ CONNECTOR > PERSONS : Pas de connecteur person : %s", $e->getMessage()));
        }

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ///
        /// GEARMMAN
        ///
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        $io->section(" ### GEARMAN : ");


        // On teste la présence du worker
        $oscarWorkerFile = __DIR__ . '/../../../../../config/oscarworker.service';
        if( !file_exists($oscarWorkerFile)) {
            $io->error("Le fichier OscarWorker est absent (config/oscarworker.service)");
            die();
        }

        $io->write(sprintf("* Envoi d'un job 'HELLO' à Gearman sur '%s' : ", $oscarConfig->getGearmanHost()));
        $client = new \GearmanClient();
        try {