Skip to content

Can't add a delay between consumption of messages. #529

Closed
@gssj85

Description

@gssj85
  • Laravel version: 10.3.2
  • RabbitMQ version: 3.5.2
  • Package version: 13.2.0

Using Laravel's Mail Facade I sent 10 emails to the emails queue.

$email = (new TaskEventsMail($message, $subject))->onConnection('rabbitmq')->onQueue('emails'); for ($i = 0; $i < 10; $i++) { Mail::to($to)->send($email); }

When I try to consume with:

php artisan rabbitmq:consume --rest 5 --queue emails

The emails are processed without the delay of 5 seconds between each.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions