Skip to content

Commit

Permalink
Merge pull request #46 from gdubost/v3
Browse files Browse the repository at this point in the history
[HF] Improvement du consume de jobs
  • Loading branch information
Kumatetsu authored Jun 25, 2019
2 parents 7ceda26 + 91b66bb commit 652d154
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/RabbitContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public function jeTraiteJobsAvecLeConsumer($nb_jobs, $consumer)
$consumer = $this->getContainer()->get("old_sound_rabbit_mq.{$consumer}_consumer");

$consumer->consume($nb_jobs);
$consumer->resetConsumed();
$consumer->getChannel()->close();
}

Expand Down

0 comments on commit 652d154

Please sign in to comment.