I'd like to be able to pass a string. If such a string exists, the job won't be created. Example: An online store sends a customer an email about a change to an order. The manager changes the order status, items, delivery time, and so on within a minute. It should be one email, not three.
Yii::$app->queue->delay(5 * 60)->name('email_' . $orderId)->push(new EmailJob([
'order_id' => $orderId,
]));
I'd like to be able to pass a string. If such a string exists, the job won't be created. Example: An online store sends a customer an email about a change to an order. The manager changes the order status, items, delivery time, and so on within a minute. It should be one email, not three.