Skip to content
Snippets Groups Projects
Commit 651012b6 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

added host variable & updated tasks to match rc_util parameters

parent bcc5650f
No related branches found
No related tags found
1 merge request!36Added updated_by field
......@@ -90,12 +90,13 @@ def celery_certify_account(json, session):
email= json['email']
fullname= json['fullname']
queuename= rc_util.encode_name(username)
updated_by= f'{username}@login005'
updated_by= f'{username}'
host= 'login005'
print("CERTIFY : "+time.strftime("%m-%d-%Y_%H:%M:%S") + '\tUser ' + username + ' added to queue')
send_msg('certifying account', room)
print(username)
rc_util.certify_account(username, queuename, 'ok', 'all', updated_by)
rc_util.certify_account(username, queuename, 'ok', 'all', updated_by, host)
print('sent account info')
print('Waiting for certification...')
rc_util.consume(queuename, routing_key=f'certified.{queuename}', callback=certify_gen_f(room))
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