Skip to content
Snippets Groups Projects
Commit 92e7866c authored by Bo-Chun Chen's avatar Bo-Chun Chen Committed by Ravi Tripathi
Browse files

Update README

parent acf7efa1
No related branches found
No related tags found
1 merge request!27Feat rc_util add function
...@@ -2,4 +2,29 @@ ...@@ -2,4 +2,29 @@
This repo keeps different rabbitmq agents that help in account creation on OHPC system. This repo keeps different rabbitmq agents that help in account creation on OHPC system.
It has 2 branches ```develop``` and ```production``` , that houses agents based on where they are launched It has 2 branches ```develop``` and ```production``` , that house agents based on where they are launched
## Using RCRMQ class
- First, rename `rabbitmq_config.py.example` to `rabbitmq_config.py`
- Modify config file, at least the `Password` needs to be your own passwod
- In your code:
```
# import the class
from rc_rmq import RCRMQ
# instantiate an instance
rc_rmq = RCRMQ({'exchange': 'RegUsr'})
# publish a message to message queue
rc_rmq.publish_msg({
'routing_key': 'your_key',
'msg': {
'type': 'warning',
'content': 'this is warning'
}
})
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment