فهرست منبع

Updated output to use jobPrefix as well as the describe command to show the job prefix.

Matt Daum 11 سال پیش
والد
کامیت
2493dddcb6
2فایلهای تغییر یافته به همراه7 افزوده شده و 2 حذف شده
  1. 1 1
      Command/GearmanWorkerListCommand.php
  2. 6 1
      Service/GearmanDescriber.php

+ 1 - 1
Command/GearmanWorkerListCommand.php

@@ -63,7 +63,7 @@ class GearmanWorkerListCommand extends ContainerAwareCommand
 
                     if (false === is_null($job['jobPrefix'])) {
 
-                        $output->writeln('<comment>          job prefix:</comment><info> '.$job['jobPrefix'].'</info>');
+                        $output->writeln('<comment>          jobPrefix:</comment><info> '.$job['jobPrefix'].'</info>');
                     }
                 }
                 $output->writeln('');

+ 6 - 1
Service/GearmanDescriber.php

@@ -62,6 +62,11 @@ class GearmanDescriber
         $output->writeln('<info>    @job\methodName : ' . $job['methodName'] . '</info>');
         $output->writeln('<info>    @job\callableName : ' . $job['realCallableName'] . '</info>');
 
+        if(false === is_null($job['jobPrefix'])){
+            $output->writeln('<info>    @job\jobPrefix : ' . $job['jobPrefix'] . '</info>');
+        }
+
+
         /**
          * Also a complete and clean execution path is given , for supervisord
          */
@@ -133,7 +138,7 @@ class GearmanDescriber
 
                 if ($job['jobPrefix']) {
 
-                    $output->writeln('<comment>        # ' . $job['realCallableNameNoPrefix'] . ' with prefix: ' . $job['jobPrefix'] . '</comment>');
+                    $output->writeln('<comment>        # ' . $job['realCallableNameNoPrefix'] . ' with jobPrefix: ' . $job['jobPrefix'] . '</comment>');
                 } else {
 
                     $output->writeln('<comment>        # ' . $job['realCallableNameNoPrefix'] . ' </comment>');