0

I'm working on TeamSpeak management system based on Laravel 4 the problem is when i restart the script it add the queue again unless i restart the Queue listener

is there a way to clear the old Queue on script startup without the need to restart the queue:listen ??

am using Iron.io service as a queue engine

Thanks in advance

//EDIT

Thanks to "thousandsofthem" it works with Laravel like this:

$queue_name = Config::get('queue.connections.iron.queue');
Queue::getIron()->clearQueue($queue_name);
Ahmed
  • 83
  • 2
  • 6

1 Answers1

0

How about touching $iron_mq->clearQueue($queue_name) ?

https://github.com/iron-io/iron_mq_php/blob/master/IronMQ.class.php#L235

No idea how Laravel exposes it though

thousandsofthem
  • 1,355
  • 10
  • 9