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

Update exchange name

After standup meeting, change the exchange name to Register
parent b449bf41
No related branches found
No related tags found
1 merge request!27Feat rc_util add function
from rc_rmq import RCRMQ
import json
rc_rmq = RCRMQ({'exchange': 'Request'})
rc_rmq = RCRMQ({'exchange': 'Register'})
confirm_rmq = RCRMQ({'exchange': 'Confirm'})
tasks = {'ohpc_account': False, 'ohpc_homedir': False, 'ood_account': False, 'slurm_account': False}
......@@ -25,6 +25,7 @@ def worker(ch, method, properties, body):
done = True
for key, status in tasks.items():
if not status:
print("{} is not done yet.".format(key))
done = False
if done:
confirm_rmq.stop_consume()
......
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