Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to run task at scheduled time with RabbitMQ

I'm using RabbitMQ to make my tasks pool run sequentially one by one. But how can add a time parameter to make a task only run at the defined time in the future (like a scheduled tasks).

like image 624
Hardy Avatar asked Sep 12 '13 10:09

Hardy


1 Answers

RabbitMQ is not a task scheduler, even though the documentation talks about "scheduling" a task. You might consider using something like cron. You could also use a library like sched to build a scheduler in a Python process.

FYI It looks like this question has already been answered: Delayed message in RabbitMQ

like image 185
millerdev Avatar answered Sep 27 '22 20:09

millerdev