Answer the question
In order to leave comments, you need to log in
How to dequeue RabbitMQ on error in Yii2?
I am using the queue component.
'components' => [
'queue' => [
'class' => 'yii\queue\amqp_interop\Queue',
'host' => 'localhost',
'user' => 'guest',
'password' => 'guest',
'queueName' => 'queue_log_user',
],
]
Yii::$app->queue->push(new UserLogJob(['data' => [
'ip' => $this->ip,
'user_agent' => $this->userAgent,
'created_at' => time(),
]]));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question