Commit 6fce2445c0614560bec66219292c4f9fe6f80316
1 parent
cf30ed5e
Exists in
master
and in
19 other branches
[issue #11] Correção de erro de vinculação de portas do Gearman
Fixed #11
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
rn/PendenciasTramiteRN.php
| ... | ... | @@ -204,7 +204,7 @@ class PendenciasTramiteRN extends InfraRN { |
| 204 | 204 | if(isset($objPendencia)) { |
| 205 | 205 | |
| 206 | 206 | $client = new GearmanClient(); |
| 207 | - $client->addServer(); | |
| 207 | + $client->addServer("127.0.0.1", 4730); | |
| 208 | 208 | |
| 209 | 209 | $strWorkload = strval($objPendencia->getNumIdentificacaoTramite()); |
| 210 | 210 | ... | ... |
rn/ProcessarPendenciasRN.php
| ... | ... | @@ -23,7 +23,7 @@ class ProcessarPendenciasRN extends InfraAgendamentoTarefa |
| 23 | 23 | public function __construct() |
| 24 | 24 | { |
| 25 | 25 | $this->objGearmanWorker = new GearmanWorker(); |
| 26 | - $this->objGearmanWorker->addServer(); | |
| 26 | + $this->objGearmanWorker->addServer("127.0.0.1", 4730); | |
| 27 | 27 | $this->configurarCallbacks(); |
| 28 | 28 | } |
| 29 | 29 | |
| ... | ... | @@ -159,7 +159,7 @@ class ProcessarPendenciasRN extends InfraAgendamentoTarefa |
| 159 | 159 | static function processarTarefa($strNomeTarefa, $strWorkload) |
| 160 | 160 | { |
| 161 | 161 | $objClient = new GearmanClient(); |
| 162 | - $objClient->addServer(); | |
| 162 | + $objClient->addServer("127.0.0.1", 4730); | |
| 163 | 163 | $objClient->doBackground($strNomeTarefa, $strWorkload); |
| 164 | 164 | } |
| 165 | 165 | } | ... | ... |