Skip to content

Commit

Permalink
Update AsyncWorkerCommand.php
Browse files Browse the repository at this point in the history
Fix component name for daemon.
  • Loading branch information
bazilio91 committed Nov 15, 2015
1 parent 6689ea2 commit 1d3a6a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/AsyncWorkerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public function actionExecute($queueName = null)
public function actionDaemon($queueName = null)
{
/** @var AsyncTask $task */
while ($task = \Yii::$app->asyncAmqp->waitAndReceive($queueName ?: AsyncTask::$queueName)) {
while ($task = \Yii::$app->async->waitAndReceive($queueName ?: AsyncTask::$queueName)) {
$task->execute();
\Yii::$app->asyncAmqp->acknowledgeTask($task);
\Yii::$app->async->acknowledgeTask($task);
}
}
}

0 comments on commit 1d3a6a8

Please sign in to comment.