Skip to content

Commit 1d3a6a8

Browse files
committed
Update AsyncWorkerCommand.php
Fix component name for daemon.
1 parent 6689ea2 commit 1d3a6a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commands/AsyncWorkerCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public function actionExecute($queueName = null)
2424
public function actionDaemon($queueName = null)
2525
{
2626
/** @var AsyncTask $task */
27-
while ($task = \Yii::$app->asyncAmqp->waitAndReceive($queueName ?: AsyncTask::$queueName)) {
27+
while ($task = \Yii::$app->async->waitAndReceive($queueName ?: AsyncTask::$queueName)) {
2828
$task->execute();
29-
\Yii::$app->asyncAmqp->acknowledgeTask($task);
29+
\Yii::$app->async->acknowledgeTask($task);
3030
}
3131
}
3232
}

0 commit comments

Comments
 (0)