Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
systems:amqp [2020/01/15 09:51] ajdavis |
systems:amqp [2021/03/24 10:09] (current) ajdavis [Clear the Queue] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | === AMQP Message Queue === | + | == AMQP Message Queue == |
- | The full invoice lifecycle is documented here. | + | === Invoice Lifecycle === |
# System 36 generates invoice and " | # System 36 generates invoice and " | ||
Line 12: | Line 12: | ||
We use a message queue, RabbitMQ, to store invoices waiting to be printed. The RabbitMQ daemon runs on Server20081 and publishes a queue called invoice. Print tools and the CRM interface with this queue with the credentials stored in KeePass. | We use a message queue, RabbitMQ, to store invoices waiting to be printed. The RabbitMQ daemon runs on Server20081 and publishes a queue called invoice. Print tools and the CRM interface with this queue with the credentials stored in KeePass. | ||
+ | |||
+ | === Clear the Queue === | ||
+ | |||
+ | In the case of certain errors the message queue may need to be cleared. You can do that by logging into the AMQP server and issuing the following command. | ||
+ | |||
+ | **Note:** <wrap hi>Only unacknowledged messages can be cleared. So any queue monitoring programs should be stopped.</ | ||
+ | < | ||
+ | rabbitmqctl purge_queue < | ||
+ | </ | ||
+ | |||
+ | You can be sure the command worked by checking the queue status. | ||
+ | < | ||
+ | rabbitmqctl list_queues | ||
+ | </ |